Skip to content

TemplateExport

ClassAssetInventoryAssetInventory.Editor
public sealed class TemplateExport : ActionProgress

Exports catalog data through a named text template and an explicit variable environment.

Run(List, TemplateInfo, List, TemplateExportSettings, TemplateExportEnvironment)

Section titled “Run(List, TemplateInfo, List, TemplateExportSettings, TemplateExportEnvironment)”
public Task Run(List<AssetInfo> assets, TemplateInfo template, List<TemplateInfo> templates, TemplateExportSettings settings, TemplateExportEnvironment env)

Renders the selected packages through the supplied template hierarchy and writes the resulting files to the configured target.

Parameters

NameType
assetsSystem.Collections.Generic.List{AssetInventory.AssetInfo}
templateAssetInventory.TemplateInfo
templatesSystem.Collections.Generic.List{AssetInventory.TemplateInfo}
settingsAssetInventory.TemplateExportSettings
envAssetInventory.TemplateExportEnvironment

Returns

System.Threading.Tasks.Task

ResolveInheritance(TemplateInfo, string, List)

Section titled “ResolveInheritance(TemplateInfo, string, List)”
public static Task ResolveInheritance(TemplateInfo template, string targetFolder, List<TemplateInfo> templates)

Loads and merges parent templates into the supplied template, resolving relative assets from the target folder.

Parameters

NameType
templateAssetInventory.TemplateInfo
targetFolderSystem.String
templatesSystem.Collections.Generic.List{AssetInventory.TemplateInfo}

Returns

System.Threading.Tasks.Task

public TemplateExport()