Skip to content

AssetInventoryActionContext

ClassAssetInventoryAssetInventory.Editor
public sealed class AssetInventoryActionContext : DictionaryActionContext

AssetInventory-specific action context that extends the base context with loaded assets and files for action steps to use.

public List<AssetInfo> LoadedAssets { get; set; }

Gets or sets the loaded assets for subsequent steps.

Returns

System.Collections.Generic.List{AssetInventory.AssetInfo} — No return description is available.

public List<AssetInfo> LoadedFiles { get; set; }

Gets or sets the loaded files for subsequent steps.

Returns

System.Collections.Generic.List{AssetInventory.AssetInfo} — No return description is available.

public static AssetInventoryActionContext Current { get; }

Gets the current context as AssetInventoryActionContext, or null if not available.

Returns

AssetInventory.AssetInventoryActionContext — No return description is available.

public static void SetLoadedAssets(List<AssetInfo> assets, LoadAssetsStep.AssetOperation operation)

Sets the loaded assets with the specified operation.

Parameters

Name Type Description
assets System.Collections.Generic.List{AssetInventory.AssetInfo}
operation AssetInventory.LoadAssetsStep.AssetOperation
public static List<AssetInfo> GetAssetsForStep()

Gets assets for a step to use. Returns loaded assets if LoadAssetsStep was executed, otherwise returns default query with filters.

Returns

System.Collections.Generic.List{AssetInventory.AssetInfo} — No return description is available.

public static void SetLoadedFiles(List<AssetInfo> files, LoadFilesStep.FileOperation operation)

Sets the loaded files with the specified operation.

Parameters

Name Type Description
files System.Collections.Generic.List{AssetInventory.AssetInfo}
operation AssetInventory.LoadFilesStep.FileOperation
public static List<AssetInfo> GetFilesForStep()

Gets files for a step to use. Returns loaded files if LoadFilesStep was executed, otherwise returns empty list.

Returns

System.Collections.Generic.List{AssetInventory.AssetInfo} — No return description is available.