Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetTracker Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    Base class for tracking assets and executing an action on each change.

    System.Object → AssetTracker
    Derived from AssetTracker:

    public abstract class AssetTracker : IDisposable
    Name Description
    Constructors
    AssetTracker(PackageSession)
    Methods
    Dispose()
    NotifyAssetChanged(Asset)

    Called when an asset changes.

    Start()
    TrackAsset(AssetItem)

    Called when a new asset is tracked.

    UnTrackAsset(AssetItem)

    Called when an asset stop being tracked.

    | Improve this Doc View Source

    Constructors


    AssetTracker(PackageSession)

    protected AssetTracker(PackageSession session)
    Parameters
    Type Name Description
    PackageSession session
    | Improve this Doc View Source

    Methods


    Dispose()

    public void Dispose()

    NotifyAssetChanged(Asset)

    Called when an asset changes.

    public abstract void NotifyAssetChanged(Asset asset)
    Parameters
    Type Name Description
    Asset asset

    Start()

    protected void Start()

    TrackAsset(AssetItem)

    Called when a new asset is tracked.

    public abstract void TrackAsset(AssetItem assetItem)
    Parameters
    Type Name Description
    AssetItem assetItem

    UnTrackAsset(AssetItem)

    Called when an asset stop being tracked.

    public abstract void UnTrackAsset(AssetItem assetItem)
    Parameters
    Type Name Description
    AssetItem assetItem

    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