Method LoadAsset
LoadAsset(string)
Load an asset from the specified asset path.
Declaration
public static TContainer LoadAsset(string assetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetPath | The asset path to load from. |
Returns
| Type | Description |
|---|---|
| TContainer | The loaded asset if successful, null otherwise. |
LoadAsset(GUID)
Load an asset from the specified asset UnityEditor.GUID.
Declaration
public static TContainer LoadAsset(GUID assetGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| GUID | assetGuid | The asset UnityEditor.GUID to load from. |
Returns
| Type | Description |
|---|---|
| TContainer | The loaded asset if successful, null otherwise. |