Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IAssetFinder Interface

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

    | Improve this Doc View Source

    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, null.


    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, null.


    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, null.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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