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 |