AssetItemExtensions Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
System.Object →
AssetItemExtensions
Derived from AssetItemExtensions:
public static class AssetItemExtensions
| Name | Description | |
|---|---|---|
| Methods | ||
| GetGeneratedAbsolutePath(AssetItem) | If the asset is a IProjectFileGeneratorAsset, gets the generated file full path. |
|
| GetGeneratedInclude(AssetItem) | If the asset is a IProjectFileGeneratorAsset, gets the generated file path relative to its containing .csproj. |
|
| GetProjectInclude(AssetItem) | Gets the asset filename relative to its .csproj file for IProjectAsset. |
|
Methods
GetGeneratedAbsolutePath(AssetItem)
If the asset is a IProjectFileGeneratorAsset, gets the generated file full path.
public static UFile GetGeneratedAbsolutePath(this AssetItem assetItem)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetItem | assetItem | The asset item. |
Returns
| Type | Description |
|---|---|
| Stride.Core.IO.UFile |
GetGeneratedInclude(AssetItem)
If the asset is a IProjectFileGeneratorAsset, gets the generated file path relative to its containing .csproj.
public static string GetGeneratedInclude(this AssetItem assetItem)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetItem | assetItem | The asset item. |
Returns
| Type | Description |
|---|---|
| System.String |
GetProjectInclude(AssetItem)
Gets the asset filename relative to its .csproj file for IProjectAsset.
public static string GetProjectInclude(this AssetItem assetItem)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetItem | assetItem | The asset item. |
Returns
| Type | Description |
|---|---|
| System.String |