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

    Struct Sprite2DSequencePlayer

    A component that is used by the Unity.Tiny.Core2D.SequencePlayerSystem to play play back a sequence of sprites when applied to an entity that also has the Sprite2DRenderer component.

    Namespace: Unity.Tiny.Core2D
    Syntax
    [IdAlias("d2cfd18aa4facc33b1da7ae05205691b")]
    public struct Sprite2DSequencePlayer : IComponentData

    Fields

    loop

    Sets the looping behavior of the animation. Defaults to Loop.

    Declaration
    public LoopMode loop
    Field Value
    Type Description
    LoopMode

    paused

    Set to true to pause animation sequence. Set back to false to continue animation. Default false.

    Declaration
    public bool paused
    Field Value
    Type Description
    System.Boolean

    sequence

    Sequence entity, required to have Sprite2DSequence component

    Declaration
    [EntityWithComponents(new Type[]{typeof(Sprite2DSequence)})]
    public Entity sequence
    Field Value
    Type Description
    Entity

    speed

    Speed multiplier for playback, defaults to 1.

    Declaration
    public float speed
    Field Value
    Type Description
    System.Single

    time

    Current time for playback, 0 to infinity.

    Declaration
    public float time
    Field Value
    Type Description
    System.Single
    In This Article
    • Fields
      • loop
      • paused
      • sequence
      • speed
      • time
    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