docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetPreloadTableFlag

    SetPreloadTableFlag(LocalizationTable, bool, bool)

    Adds or Remove the preload flag for the selected table.

    Declaration
    public static void SetPreloadTableFlag(LocalizationTable table, bool preload, bool createUndo = false)
    Parameters
    Type Name Description
    LocalizationTable table

    The table to mark as preload.

    bool preload

    true ifd the table should be preloaded or false if it should be loaded on demand.

    bool createUndo

    Should an Undo record be created?

    Examples

    This example shows how to set the preload flag for a single collection.

    var collection = LocalizationEditorSettings.GetStringTableCollection("My Strings");
    
    // Enable preloading for all tables in the collection
    foreach (var table in collection.StringTables)
    {
        LocalizationEditorSettings.SetPreloadTableFlag(table, true);
    }
    In This Article
    Back to top
    Copyright © 2024 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)