Struct SpriteState
Structure that stores the state of a sprite transition on a Selectable.
Implements
Inherited Members
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
[Serializable]
public struct SpriteState : IEquatable<SpriteState>
Properties
disabledSprite
Disabled sprite.
Declaration
public Sprite disabledSprite { get; set; }
Property Value
| Type | Description |
|---|---|
| Sprite |
highlightedSprite
Highlighted sprite.
Declaration
public Sprite highlightedSprite { get; set; }
Property Value
| Type | Description |
|---|---|
| Sprite |
pressedSprite
Pressed sprite.
Declaration
public Sprite pressedSprite { get; set; }
Property Value
| Type | Description |
|---|---|
| Sprite |
selectedSprite
Selected sprite.
Declaration
public Sprite selectedSprite { get; set; }
Property Value
| Type | Description |
|---|---|
| Sprite |
Methods
Equals(SpriteState)
Returns true if the given SpriteState has the same sprite references as this one.
Declaration
public bool Equals(SpriteState other)
Parameters
| Type | Name | Description |
|---|---|---|
| SpriteState | other | The SpriteState to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if all sprite fields are equal. |