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);
}