Dotween Study Notes (i)

Source: Internet
Author: User

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:

    1. Speed and efficiency: Not only very fast, but also very effective: everything is cached and reused, avoiding useless GC allocations.
    2. Shortcut: Extending common objects using extension methods user-friendly writing code is as follows
      1. // 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 ();
    3. Almost any animation supported: Supports attribute numbers, non-numeric, string, and rich-text animation presentation
    4. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.