Struct TweenDesc
Structure that describes a single tween. It is part of the TweenComponent, and is automatically created by AddTween<T>(Entity, TypeManager.FieldInfo, T, T, Single, TweenFunc, LoopMode, Boolean, Single)
Namespace: Unity.Tiny.Tweens
Syntax
public struct TweenDesc
Fields
destroyWhenDone
If true, destroys the tweening entity (not the target entity) when the tweening operation ends.
Declaration
public bool destroyWhenDone
Field Value
Type | Description |
---|---|
System.Boolean |
duration
Duration of tween, in seconds.
Declaration
public float duration
Field Value
Type | Description |
---|---|
System.Single |
func
The tweening function to use, as defined by TweenFunc
Declaration
public TweenFunc func
Field Value
Type | Description |
---|---|
TweenFunc |
loop
The looping behavior to use.
Declaration
public LoopMode loop
Field Value
Type | Description |
---|---|
LoopMode |
time
Current time of tween, in seconds.
Declaration
public float time
Field Value
Type | Description |
---|---|
System.Single |
Remarks
Negative if the tween has not started. Setting a negative value delays the start of the tween. You can chain multiple tweens together by having them start at different offsets.