docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AnimationDescription

    An animation description. It contains the duration of the animation, the easing function and the callback.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public struct AnimationDescription

    Fields

    callback

    The callback to call when the animation is running.

    Declaration
    public Action<VisualElement, float> callback
    Field Value
    Type Description
    Action<VisualElement, float>

    durationMs

    The duration of the animation in milliseconds.

    Declaration
    public int durationMs
    Field Value
    Type Description
    int

    easing

    The easing function to use for the animation.

    Declaration
    public Func<float, float> easing
    Field Value
    Type Description
    Func<float, float>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)