Search Results for

    Show / Hide Table of Contents

    Class SUAnimationData

    Data used to setup (DOTween) Animations by the inspector

    Inheritance
    Object
    SUAnimationData
    SUAnchoredAnimationData
    SUCGroupData
    SUCharTweenData
    SUColorData
    SUPunchData
    SURectSizeData
    SURotationData
    SUScaleData
    SUScreenAnimationData
    SUShakeData
    Namespace: Surfer
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public abstract class SUAnimationData

    Fields

    _alreadyCached

    Declaration
    protected bool _alreadyCached
    Field Value
    Type Description
    Boolean

    _delay

    Declaration
    protected float _delay
    Field Value
    Type Description
    Single

    _delayMode

    Declaration
    protected SUAnimationData.DelayMode_ID _delayMode
    Field Value
    Type Description
    SUAnimationData.DelayMode_ID

    _duration

    Declaration
    protected float _duration
    Field Value
    Type Description
    Single

    _ease

    Declaration
    protected Ease _ease
    Field Value
    Type Description
    Ease

    _endMode

    Declaration
    protected SUAnimationData.EndMode_ID _endMode
    Field Value
    Type Description
    SUAnimationData.EndMode_ID

    _idTween

    Declaration
    protected string _idTween
    Field Value
    Type Description
    String

    _loop

    Declaration
    protected LoopType _loop
    Field Value
    Type Description
    LoopType

    _looped

    Declaration
    protected bool _looped
    Field Value
    Type Description
    Boolean

    _startMode

    Declaration
    protected SUAnimationData.StartMode_ID _startMode
    Field Value
    Type Description
    SUAnimationData.StartMode_ID

    _transf

    Declaration
    protected Transform _transf
    Field Value
    Type Description
    Transform

    _tween

    Declaration
    protected Tween _tween
    Field Value
    Type Description
    Tween

    _useUnscaledTime

    Declaration
    protected bool _useUnscaledTime
    Field Value
    Type Description
    Boolean

    AllPlaying

    Declaration
    public static Dictionary<string, Tween> AllPlaying
    Field Value
    Type Description
    Dictionary<String, Tween>

    CGroupPrefix

    Declaration
    public const string CGroupPrefix = "_cg"
    Field Value
    Type Description
    String

    CharTweenPrefix

    Declaration
    public const string CharTweenPrefix = "_charT"
    Field Value
    Type Description
    String

    ColorPrefix

    Declaration
    public const string ColorPrefix = "_col"
    Field Value
    Type Description
    String

    JumpPrefix

    Declaration
    public const string JumpPrefix = "_po"
    Field Value
    Type Description
    String

    PositionPrefix

    Declaration
    public const string PositionPrefix = "_po"
    Field Value
    Type Description
    String

    PunchPrefix

    Declaration
    public const string PunchPrefix = "_pu"
    Field Value
    Type Description
    String

    RectSizePrefix

    Declaration
    public const string RectSizePrefix = "_rec"
    Field Value
    Type Description
    String

    RotationPrefix

    Declaration
    public const string RotationPrefix = "_rot"
    Field Value
    Type Description
    String

    ScalePrefix

    Declaration
    public const string ScalePrefix = "_sc"
    Field Value
    Type Description
    String

    ShakePrefix

    Declaration
    public const string ShakePrefix = "_sh"
    Field Value
    Type Description
    String

    SizePrefix

    Declaration
    public const string SizePrefix = "_siz"
    Field Value
    Type Description
    String

    Properties

    Delay

    Adjusted delay based (or not) on the sibling index of the gameObject

    Declaration
    public float Delay { get; }
    Property Value
    Type Description
    Single

    IsAvailable

    Check if animation can be played (i.e. not set to None)

    Declaration
    protected virtual bool IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    IsToolkit

    Declaration
    protected virtual bool IsToolkit { get; }
    Property Value
    Type Description
    Boolean

    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
    public void KillIt()

    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

    In This Article
    Back to top Copyright © 2021 ATStudio