Skip to content

TemplateUtils

ClassAssetInventoryAssetInventory.Editor
public static class TemplateUtils

No description is available for this type.

public static List<TemplateInfo> LoadTemplates(bool addSeparator = true)

Loads all available templates from the Templates folder.

Parameters

Name Type Description
addSeparator System.Boolean If true, adds an empty separator entry between regular and sample templates.

Returns

System.Collections.Generic.List{AssetInventory.TemplateInfo} — List of loaded templates.

public static string GetTemplateRootFolder()

Gets the root folder where templates are stored.

Returns

System.String — Path to the template root folder.

public static string GetTemplateSaveFolder()

Gets the folder where new templates should be saved. Returns the custom template folder if set, otherwise the default template folder.

Returns

System.String — Path to the folder for saving new templates.