AssetTracker Class
Namespace: Stride.Core.AssetsAssembly: 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. |
Constructors
AssetTracker(PackageSession)
protected AssetTracker(PackageSession session)
Parameters
Type | Name | Description |
---|---|---|
PackageSession | session |
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 |