Enum WrapMode | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Enum WrapMode

    Determines how an animation clip behaves when it's being evaluated beyond its duration.

    Namespace: Unity.Tiny.Animation
    Syntax
    public enum WrapMode : byte

    Fields

    Name Description Value
    Once

    When time reaches the end of the animation clip, the clip will automatically stop playing and time will be reset to beginning of the clip.

    0
    ClampForever

    When time reaches the end of the animation clip, the clip will keep playing the last frame and never stop.

    1
    Loop

    When time reaches the end of the animation clip, it will continue at the beginning.

    2
    PingPong

    When time reaches the end of the animation clip, it will start going backwards until it reaches the beginning and then start going forward again.

    3
    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