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

    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
    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