docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SpriteState

    Structure that stores the state of a sprite transition on a Selectable.

    Implements
    IEquatable<SpriteState>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)