![]() ![]() RecycleAllByDefault If TRUE all new tweens will be set for recycling, meaning that when killed they won't be destroyed but instead will be put in a pool and reused rather than creating new tweens. Call it without any parameter to use the preferences you set in DOTween's Utility Panel (otherwise they will be overrided by any eventual parameter passed). static DOTween.Init(bool recycleAllByDefault = false, bool useSafeMode = true, LogBehaviour logBehaviour = LogBehaviour.ErrorsOnly) Initializes DOTween. Optionally, you can chain SetCapacity to the Init method, which allows to set the max Tweeners/Sequences initial capacity (it's the same as calling DOTween.SetTweensCapacity later). If instead you prefer to initialize it yourself (recommended), call this methods once, BEFORE creating any tween (calling it afterwards will have no effect).Ĭonsider that you can still change all init settings whenever your want, by using DOTween's global settings The first time you create a tween, DOTween will initialize itself automatically, using default values. myTween.OnStart(myStartFunction).OnComplete(m圜ompleteFunction) DOTween.Init myTween.SetLoops(4, LoopType.Yoyo).SetSpeedBased() On Prefix for all callbacks that can be chained to a tween. transform.DOMoveX(100, 1) ĭOTween.Play() Set Prefix for all settings that can be chained to a tween (except for From, since it's applied as a setting but is not really a setting). Also the prefix of the main DOTween class. Prefixes are important to use the most out of IntelliSense, so try to remember these: DO Prefix for all tween shortcuts (operations that can be started directly from a known object, like a transform or a material). Nested tween A tween contained inside a Sequence. Tween A generic word that indicates both a Tweener and a Sequence. Sequence A special tween that, instead of taking control of a value, takes control of other tweens and animates them as a group. If you’re enjoying using it, please consider contributing!Ĭopyright © 2020 Secret Lab and Yarn Spinner Contributors.Nomenclature Tweener A tween that takes control of a value and animates it. However, if you have a specific need to process an input and do something with the resulting output, then use a Function. Given these tradeoffs, we recommend using Commands most of the time, because being able to pause or pace your dialogue script is important for storytelling and encourages good scripting habits. ![]() takes input and returns output can return values back to the Yarn script.cannot pause or interrupt Yarn scripts, always executes within a frame. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |