Rewired Glyphs Docs Rewired Glyphs Docs
Rewired Glyphs Docs Rewired Glyphs Docs
Rewired Glyphs

Search Results for

    Constructor Glyph

    Glyph(int, string, ControllerType?, Sprite, Sprite, Sprite, Type)

    Declaration
    public Glyph(int inputID, string description, ControllerType? controllerType, Sprite sprite, Sprite positiveSprite, Sprite negativeSprite, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    int inputID
    string description
    ControllerType? controllerType
    Sprite sprite
    Sprite positiveSprite
    Sprite negativeSprite
    Glyph.Type type

    Glyph(int, string, ControllerType?, Sprite, Type)

    Declaration
    public Glyph(int inputID, string description, ControllerType? controllerType, Sprite sprite, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    int inputID
    string description
    ControllerType? controllerType
    Sprite sprite
    Glyph.Type type

    Glyph(string, ControllerType?, Sprite, Type)

    Create a fallback glyph that only contains a description.

    Declaration
    public Glyph(string description, ControllerType? controllerType, Sprite sprite = null, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    string description
    ControllerType? controllerType
    Sprite sprite
    Glyph.Type type
    Remarks

    The main use case is if there is no glyph found but there is some information about the input that can allow it to be shown in text.

    Glyph(int, string, Sprite, Sprite, Sprite, Type)

    Declaration
    [Obsolete("This constructor does not specify ControllerType which may cause issues with other systems. Use Glyph(int, string, Rewired.ControllerType, Sprite, Sprite, Sprite, Type) instead.")]
    public Glyph(int inputID, string description, Sprite sprite, Sprite positiveSprite, Sprite negativeSprite, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    int inputID
    string description
    Sprite sprite
    Sprite positiveSprite
    Sprite negativeSprite
    Glyph.Type type

    Glyph(int, string, Sprite, Type)

    Declaration
    [Obsolete("This constructor does not specify ControllerType which may cause issues with other systems. Glyph(int, string, Rewired.ControllerType, Sprite, Type) instead.")]
    public Glyph(int inputID, string description, Sprite sprite, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    int inputID
    string description
    Sprite sprite
    Glyph.Type type

    Glyph(string, Sprite, Type)

    Declaration
    [Obsolete("This constructor does not specify ControllerType which may cause issues with other systems. Use Glyph(string, ControllerType) instead.")]
    public Glyph(string description, Sprite sprite = null, Glyph.Type type = Type.Input)
    Parameters
    Type Name Description
    string description
    Sprite sprite
    Glyph.Type type
    Docs generated for Rewired-Glyphs Unity Package. Package distributed under MIT license.