ProjectAssetSearch
public static class ProjectAssetSearchSearches assets already present in the open Unity project and returns their catalog relationships.
Methods
Section titled “Methods”
Execute(Options)
Section titled “Execute(Options)”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
HasMetadataFilter(Options)
Section titled “HasMetadataFilter(Options)”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
ResetIdCounter()
Section titled “ResetIdCounter()”public static void ResetIdCounter()Resets the virtual ID counter. Call when scope changes to avoid stale IDs.