Struct TweenDesc | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023