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

Search Results for

    Method LoadGlyphCollection

    LoadGlyphCollection(GlyphCollection, bool)

    Additively load a GlyphCollection into runtime memory on InputGlyphs, allowing it to be utilized by Glyph queries.

    Provides the setAsDefault parameter to determine if this glyph should be used as the primary (default) glyph collection for queries.

    Declaration
    public static void LoadGlyphCollection(GlyphCollection collection, bool setAsDefault = true)
    Parameters
    Type Name Description
    GlyphCollection collection

    The collection to load into memory.

    bool setAsDefault

    When true set this collection as the default collection, using it for all queries that do not specify another collection

    Remarks

    RewiredGlyphManager invokes this method on Awake to set its glyphCollection as the default when initializing. From that point onward you can use this method to add additional collections and change the default collection.

    This method can safely be used even if a collection has already been loaded into memory, primarily for changing the default collection (with setAsDefault true).

    Examples

    You may consider creating and loading alternative glyph collections for light/dark themes, in-game teams, enviornments, or factions.

    Docs generated for Rewired-Glyphs Unity Package. Package distributed under MIT license.