Search Results for

    Show / Hide Table of Contents

    Class RotateByTween

    Tweens the rotation of an object around an axis and by the specified angle.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    TriggerBehaviour
    Tween<Transform>
    RotateByTween
    Implements
    ITriggerState
    Inherited Members
    Tween<Transform>.target
    Tween<Transform>.duration
    Tween<Transform>.delay
    Tween<Transform>.loopCount
    Tween<Transform>.loopType
    Tween<Transform>.useCustomEase
    Tween<Transform>.ease
    Tween<Transform>.easeCurve
    Tween<Transform>.enableTriggerWhileDisable
    Tween<Transform>.randomizeStartPoint
    Tween<Transform>.syncToTweensStart
    Tween<Transform>.resetOnDisable
    Tween<Transform>.onStart
    Tween<Transform>.onUpdate
    Tween<Transform>.onComplete
    Tween<Transform>.Target
    Tween<Transform>.OnStart
    Tween<Transform>.OnUpdate
    Tween<Transform>.OnComplete
    Tween<Transform>.startTime
    Tween<Transform>.Trigger()
    Tween<Transform>.Kill()
    TriggerBehaviour.triggerOnceEnabled
    Namespace: GGL.Animation.Tweens
    Assembly: GGL.dll
    Syntax
    [AddComponentMenu("GG-Library/Animation/Tweens/Rotate By")]
    [HelpURL("https://ggl.yoannhaffner.com/articles/tweens.html")]
    public class RotateByTween : Tween<Transform>, ITriggerState

    Methods

    | Edit this page View Source

    GenerateTween()

    Create the animation with DOTween.

    Declaration
    public override Tween GenerateTween()
    Returns
    Type Description
    Tween Tweens the rotation of an object around an axis and by the specified angle.
    Overrides
    Tween<Transform>.GenerateTween()
    Remarks

    It can be generated by extension from the target type (check shortcuts) or with DG.Tweening.DOTween static methods.
    If you need to add an OnStart/OnUpdate/OnCompleted event, please use the ones in Tween<T> class.

    | Edit this page View Source

    ResetState()

    Restore the values you buffered via SaveState(). Used when restoring on disable.

    Declaration
    public override void ResetState()
    Overrides
    Tween<Transform>.ResetState()
    | Edit this page View Source

    SaveState()

    Buffer the values of the target concerned by the animation. Used when restoring on disable.

    Declaration
    public override void SaveState()
    Overrides
    Tween<Transform>.SaveState()

    Implements

    ITriggerState
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX