Astra Child

Trail Renderer

Estimated reading: 4 minutes 0 views

TRAIL RENDERER

DOTWEEN TRAIL RENDERER RESIZE

Tweens a TrailRenderer’s startWidth/endWidth to the given value. Also stores the TrailRenderer as the tween’s target so it can
be used for filtered operations

GameObject – reference to a gameObject with a TrailRenderer Component
attached.
To Start Width – The end startWidth to reach
To End Width – The end endWidth to reach
Duration – The duration of the tween
SetSpeedBased – If isSpeedBased is TRUE sets the tween as speed based (the
duration will represent the number of units/degrees the tween moves x second).
NOTE: if you want your speed to be constant, also set the ease to Ease.Linear.
StartDelay – Set a delayed startup for the tween


EVENTS
StartEvent – Playmaker Event to trigger when the tween starts
FinishEvent – Playmaker Event to trigger when the tween ends
FinishImmediately – If TRUE this action will finish immediately, if FALSE it will finish
when the tween is complete.


TWEEN ID
TweenIdType
– Select the source for the tween ID
StringAsId – Use a String as the tween ID
TagAsId – Use a Tag as the tween ID


EASE SETTINGS
SelectedEase
– Select the source for the ease (ease type or animation curve)
EaseType – Sets the ease of the tween. If applied to a Sequence instead of a
Tweener, the ease will be applied to the whole Sequence as if it was a single
animated timeline.Sequences always have Ease.Linear by default, independently of
the global default ease settings.
AnimationCurve – Set custom animation curve for the tween


LOOP SETTINGS
Loops
– Number of loops. Setting loops to -1 will make the tween loop infinitely.
LoopType – Sets the looping options (Restart, Yoyo, Incremental) for the tween.


SPECIAL SETTINGS
AutoKillOnCompletion
– If autoKillOnCompletion is set to TRUE the tween will be
killed as soon as it completes, otherwise it will stay in memory and you’ll be able to
reuse it. (default TRUE)
Recyclable – Sets the recycling behaviour for the tween. If you don’t set it then the
default value (set either via DOTween.Init or DOTween.defaultRecyclable) will be
used. (default FALSE)
UpdateType – Sets the type of update (Normal, Late or Fixed) for the tween and
eventually tells it to ignore Unity’s timeScale. UpdateType.Normal: Updates every
frame during Update calls. UpdateType.Late: Updates every frame during
LateUpdate calls. UpdateType.Fixed: Updates using FixedUpdate calls. (default
UpdateType.Normal)
IsIndependentUpdate – If TRUE the tween will ignore Unity’s Time.timeScale.
NOTE: independentUpdate works also with UpdateType.Fixed but is not
recommended in that case (because at timeScale 0 FixedUpdate won’t run).
(default FALSE)


DEBUG OPTIONS
DebugThis
– Will print in the Debug.Log, the gameObject name this FSM is
attached to, the FSM name and the State name that issued this action.

DOTWEEN TRAIL RENDERER TIME

Changes the target’s time value to the given one

GameObject – reference to a gameObject with a TrailRenderer Component
attached.
To – The end value to reach
Duration – The duration of the tween
SetSpeedBased – If isSpeedBased is TRUE sets the tween as speed based (the
duration will represent the number of units/degrees the tween moves x second).
NOTE: if you want your speed to be constant, also set the ease to Ease.Linear.
StartDelay – Set a delayed startup for the tween


EVENTS
StartEvent – Playmaker Event to trigger when the tween starts
FinishEvent – Playmaker Event to trigger when the tween ends
FinishImmediately – If TRUE this action will finish immediately, if FALSE it will finish
when the tween is complete.


TWEEN ID
TweenIdType
– Select the source for the tween ID
StringAsId – Use a String as the tween ID
TagAsId – Use a Tag as the tween ID


EASE SETTINGS
SelectedEase
– Select the source for the ease (ease type or animation curve)
EaseType – Sets the ease of the tween. If applied to a Sequence instead of a
Tweener, the ease will be applied to the whole Sequence as if it was a single
animated timeline.Sequences always have Ease.Linear by default, independently of
the global default ease settings.
AnimationCurve – Set custom animation curve for the tween


LOOP SETTINGS
Loops
– Number of loops. Setting loops to -1 will make the tween loop infinitely.
LoopType – Sets the looping options (Restart, Yoyo, Incremental) for the tween.


SPECIAL SETTINGS
AutoKillOnCompletion
– If autoKillOnCompletion is set to TRUE the tween will be
killed as soon as it completes, otherwise it will stay in memory and you’ll be able to
reuse it. (default TRUE)
Recyclable – Sets the recycling behaviour for the tween. If you don’t set it then the
default value (set either via DOTween.Init or DOTween.defaultRecyclable) will be
used. (default FALSE)
UpdateType – Sets the type of update (Normal, Late or Fixed) for the tween and
eventually tells it to ignore Unity’s timeScale. UpdateType.Normal: Updates every
frame during Update calls. UpdateType.Late: Updates every frame during
LateUpdate calls. UpdateType.Fixed: Updates using FixedUpdate calls. (default
UpdateType.Normal)
IsIndependentUpdate – If TRUE the tween will ignore Unity’s Time.timeScale.
NOTE: independentUpdate works also with UpdateType.Fixed but is not
recommended in that case (because at timeScale 0 FixedUpdate won’t run).
(default FALSE)


DEBUG OPTIONS
DebugThis
– Will print in the Debug.Log, the gameObject name this FSM is
attached to, the FSM name and the State name that issued this action.

Share this Doc
CONTENTS
Scroll to Top