Documentation - v20.0.0-dev
    Preparing search index...

    Interface AddSpriteCommandOptions

    Options for AddSpriteCommand.

    interface AddSpriteCommandOptions {
        imageUrl?: string;
        layer?: MeshLayer;
        onClick?: () => void;
        selectable?: boolean;
        size?: number;
        text?: string;
    }
    Index

    Properties

    imageUrl?: string

    Url to the image to display in the Sprite texture

    ""
    
    layer?: MeshLayer

    The layer it is drawn in (see SceneObject.layer): the top one by default, over every object, not hidden by the objects in front of it; Layer1 draws it among the scene's objects.

    MeshLayer.Layer4
    
    onClick?: () => void

    Call when the sprite has been clicked by the user

    selectable?: boolean
    true
    
    size?: number
    1
    
    text?: string

    Texture to display above the icon

    ""