IAssetFinder Interface
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
public interface IAssetFinder
              | Name | Description | |
|---|---|---|
| Methods | ||
| FindAsset(AssetId) | Finds an asset by its identifier.  | 
                          |
| FindAsset(UFile) | Finds an asset by its location.  | 
                          |
| FindAssetFromProxyObject(Object) | Finds an asset from a proxy object.  | 
                          |
Methods
FindAsset(AssetId)
Finds an asset by its identifier.
AssetItem FindAsset(AssetId assetId)
              Parameters
| Type | Name | Description | 
|---|---|---|
| AssetId | assetId | The identifier of the asset.  | 
                  
Returns
| Type | Description | 
|---|---|
| AssetItem | The corresponding AssetItem if found; otherwise,   | 
                  
FindAsset(UFile)
Finds an asset by its location.
AssetItem FindAsset(UFile location)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Stride.Core.IO.UFile | location | The location of the asset.  | 
                  
Returns
| Type | Description | 
|---|---|
| AssetItem | The corresponding AssetItem if found; otherwise,   | 
                  
FindAssetFromProxyObject(Object)
Finds an asset from a proxy object.
AssetItem FindAssetFromProxyObject(object proxyObject)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | proxyObject | The proxy object which is represent the targeted asset.  | 
                  
Returns
| Type | Description | 
|---|---|
| AssetItem | The corresponding AssetItem if found; otherwise,   |