Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetItemExtensions Class

    Namespace: Stride.Core.Assets
    Assembly: 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.

    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation