Skip to content

ProjectAssetSearch

ClassAssetInventoryAssetInventory.Editor
public static class ProjectAssetSearch

Searches assets already present in the open Unity project and returns their catalog relationships.

public static ProjectAssetSearch.Result Execute(ProjectAssetSearch.Options opt)

Searches the open Unity project with the configured filters and returns matching project asset records.

Parameters

Name Type
opt AssetInventory.ProjectAssetSearch.Options

Returns

AssetInventory.ProjectAssetSearch.Result

public static bool HasMetadataFilter(ProjectAssetSearch.Options opt)

Reports whether the search options contain at least one active custom-metadata filter.

Parameters

Name Type
opt AssetInventory.ProjectAssetSearch.Options

Returns

System.Boolean

public static void ResetIdCounter()

Resets the virtual ID counter. Call when scope changes to avoid stale IDs.