Struct SpriteTransition
Applies standard sprite-swap effect on controls that have a PointerInteraction component.
Namespace: Unity.Tiny.UIControls
Syntax
public struct SpriteTransition : IComponentData
Fields
disabled
The sprite used when the entity has an InactiveUIElement component.
Declaration
[EntityWithComponents(new Type[]{typeof(Sprite2D)})]
public Entity disabled
Field Value
Type | Description |
---|---|
Entity |
hover
The sprite used when PointerInteraction.down = false and PointerInteraction.over = false.
Declaration
[EntityWithComponents(new Type[]{typeof(Sprite2D)})]
public Entity hover
Field Value
Type | Description |
---|---|
Entity |
normal
The sprite used when PointerInteraction.down = false and PointerInteraction.over = false.
Declaration
[EntityWithComponents(new Type[]{typeof(Sprite2D)})]
public Entity normal
Field Value
Type | Description |
---|---|
Entity |
pressed
The sprite used when PointerInteraction.down = true.
Declaration
[EntityWithComponents(new Type[]{typeof(Sprite2D)})]
public Entity pressed
Field Value
Type | Description |
---|---|
Entity |