Class AssetDatabaseHelper
Set of helpers for AssetDatabase operations.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class AssetDatabaseHelper
Methods
FindAssetPaths<T>(string)
Finds all assets paths of type T in the project.
Declaration
public static IEnumerable<string> FindAssetPaths<T>(string extension = null) where T : Object
Parameters
Type | Name | Description |
---|---|---|
string | extension | Asset type extension i.e ".mat" for materials. Specifying extension make this faster. |
Returns
Type | Description |
---|---|
IEnumerable<string> | An IEnumerable off all assets paths found. |
Type Parameters
Name | Description |
---|---|
T | The type of asset you are looking for |
FindAssets<T>(string)
Finds all assets of type T in the project.
Declaration
public static IEnumerable<T> FindAssets<T>(string extension = null) where T : Object
Parameters
Type | Name | Description |
---|---|---|
string | extension | Asset type extension i.e ".mat" for materials. Specifying extension make this faster. |
Returns
Type | Description |
---|---|
IEnumerable<T> | An IEnumerable off all assets found. |
Type Parameters
Name | Description |
---|---|
T | The type of asset you are looking for |