Dotween is a fast, efficient, fully unified type-safe object property animation engine, free open source, lots of advanced features.
Dotween compatible with Unity4.5 versions, supported platforms: Win, Mac, Unity Webplayer, WebGL, IOS, Android,windows Phone 8, Windows Store, PS Vita (PSM) , Ps4,xbox one platform,
website Address: http://dotween.demigiant.com/
Characteristics:
- Speed and efficiency: Not only very fast, but also very effective: everything is cached and reused, avoiding useless GC allocations.
- Shortcut: Extending common objects using extension methods user-friendly writing code is as follows
// Move a transform to position 1 secondtransform. Domove (new Vector3 (1,2,31); // Scale the Y of a transform to 3 in 1 secondtransform. Doscaley (31); // Pause A transform ' s tweentransform. Dopause ();
- Almost any animation supported: Supports attribute numbers, non-numeric, string, and rich-text animation presentation
- There's a lot I don't introduce.
Simply move the cube to the destination:
PublicTransform Cube; //Use this for initialization voidStart () {//move past to 0,4,0 's position.Cube. Domove (NewVector3 (0,4,0),2); //move from 0,4,0 's location .Cube. Domove (NewVector3 (0,4,0),2). From (); //move back and forth to the 0,4,0 positionCube. Domove (NewVector3 (0,4,0),2). Setrelative (). Setloops (-1, Looptype.yoyo); //Another way of writingDotween.to (() = Cube.position, x=> cube.position = x,NewVector3 (0,4,0),1). Setrelative (). Setloops (-1, Looptype.yoyo); }
Dotween Study Notes (i)