DOTween download address for each version

Table of contents

1. Download address 

 2. Namespace

3. Settings

4. Introduction

5. How to use


1. Download address 

​​​​​​​​​​​​​​dotween download address

 After the download is complete, unzip the compressed package anywhere,

Put the decompressed file under Assets in your project file directory (just don't put it in the Editor, Plugins or Resources directory)

 2. Namespace

Import the namespace when using the dotween method

using DG.Tweening;

3. Settings

Import new DOTween After updating, you must setup DOTween to import/re-import additional libraries and activate/deactivate modules according to your Unity version.

To set up DOTween, open the DOTween Utility Panel from the "Tools/Demigiant" menu and select "Setup DOTween..." from the panel that appears.

4. Introduction

To set some global options:

DOTween.Init(autoKillMode, useSafeMode, logBehaviour);

If you don't do this (or do so after creating the first DOTween), then the DOTween will be automatically initialized with default settings. But you can also make changes at any time.

Global settings allow you to set default autoPlay and autoKill behavior, ease Type, global time scaling, and more.

⚠️To avoid using more resources unnecessarily, it sets itself up to 200 Tweeners and 50 sequences running simultaneously. DOTween will automatically increase its size if you need more.

You can also directly set when to automatically resize:

DOTween.SetTweensCapacity(2500, 150);

DOTween can convert between values ​​of these types: string, int, float, double, uint, long, ulong, Vector2, Vector3, Vector4, Quaternion, Rect, RectOffset, Color

Also, you can create custom DOTween plugins to switch between custom value types

5. How to use

Detailed introduction to Dotween

Guess you like

Origin blog.csdn.net/lalate/article/details/127752486