Class SUAnimationData
Data used to setup (DOTween) Animations by the inspector
Inheritance
SUAnimationData
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public abstract class SUAnimationData
Fields
_alreadyCached
Declaration
protected bool _alreadyCached
Field Value
_delay
Declaration
Field Value
_delayMode
Declaration
protected SUAnimationData.DelayMode_ID _delayMode
Field Value
_duration
Declaration
protected float _duration
Field Value
_ease
Declaration
Field Value
_endMode
Declaration
protected SUAnimationData.EndMode_ID _endMode
Field Value
_idTween
Declaration
protected string _idTween
Field Value
_loop
Declaration
Field Value
Type |
Description |
LoopType |
|
_looped
Declaration
Field Value
_startMode
Declaration
protected SUAnimationData.StartMode_ID _startMode
Field Value
_transf
Declaration
protected Transform _transf
Field Value
Type |
Description |
Transform |
|
_tween
Declaration
Field Value
_useUnscaledTime
Declaration
protected bool _useUnscaledTime
Field Value
AllPlaying
Declaration
public static Dictionary<string, Tween> AllPlaying
Field Value
CGroupPrefix
Declaration
public const string CGroupPrefix = "_cg"
Field Value
CharTweenPrefix
Declaration
public const string CharTweenPrefix = "_charT"
Field Value
ColorPrefix
Declaration
public const string ColorPrefix = "_col"
Field Value
JumpPrefix
Declaration
public const string JumpPrefix = "_po"
Field Value
PositionPrefix
Declaration
public const string PositionPrefix = "_po"
Field Value
PunchPrefix
Declaration
public const string PunchPrefix = "_pu"
Field Value
RectSizePrefix
Declaration
public const string RectSizePrefix = "_rec"
Field Value
RotationPrefix
Declaration
public const string RotationPrefix = "_rot"
Field Value
ScalePrefix
Declaration
public const string ScalePrefix = "_sc"
Field Value
ShakePrefix
Declaration
public const string ShakePrefix = "_sh"
Field Value
SizePrefix
Declaration
public const string SizePrefix = "_siz"
Field Value
Properties
Delay
Adjusted delay based (or not) on the sibling index of the gameObject
Declaration
public float Delay { get; }
Property Value
IsAvailable
Check if animation can be played (i.e. not set to None)
Declaration
protected virtual bool IsAvailable { get; }
Property Value
Declaration
protected virtual bool IsToolkit { get; }
Property Value
Methods
CacheComponents(GameObject)
Cache all the components need to play the animation
Declaration
public void CacheComponents(GameObject go)
Parameters
Type |
Name |
Description |
GameObject |
go |
GameObject where to cache the components from
|
KillIt()
Kill the tween by using its id
Declaration
OnCache(GameObject)
Declaration
protected virtual void OnCache(GameObject go)
Parameters
Type |
Name |
Description |
GameObject |
go |
|
OnCompleteTweenLogic()
Declaration
protected void OnCompleteTweenLogic()
OnPlay(GameObject)
Declaration
protected virtual void OnPlay(GameObject go)
Parameters
Type |
Name |
Description |
GameObject |
go |
|
OnPlayTweenLogic()
Declaration
protected void OnPlayTweenLogic()
Play(GameObject)
Play animation set up in the inspector
Declaration
public void Play(GameObject go)
Parameters
Type |
Name |
Description |
GameObject |
go |
GameObject that will play the animation
|