AssetFileChangedEvent Class
Namespace: Stride.Core.Assets.AnalysisAssembly: Stride.Core.Assets.dll
An event that notifies the type of disk change for an asset.
public class AssetFileChangedEvent : EventArgs
Name | Description | |
---|---|---|
Constructors | ||
AssetFileChangedEvent(Package, AssetFileChangedType, UFile) | Initializes a new instance of the AssetFileChangedEvent class. |
|
Properties | ||
AssetId | Gets or sets the asset identifier. |
|
AssetLocation | Gets the asset location relative to the package. |
|
ChangeType | Gets the type of the change. |
|
Hash | Gets or sets the hash of the asset source (optional). |
|
Package | Gets the package the event is related to. |
Constructors
AssetFileChangedEvent(Package, AssetFileChangedType, UFile)
Initializes a new instance of the AssetFileChangedEvent class.
public AssetFileChangedEvent(Package package, AssetFileChangedType changeType, UFile assetLocation)
Parameters
Type | Name | Description |
---|---|---|
Package | package | The package. |
AssetFileChangedType | changeType | Type of the change. |
Stride.Core.IO.UFile | assetLocation | The asset URL. |
Properties
AssetId
Gets or sets the asset identifier.
public Guid AssetId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | The asset identifier. |
AssetLocation
Gets the asset location relative to the package.
public UFile AssetLocation { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.IO.UFile | The asset location. |
ChangeType
Gets the type of the change.
public AssetFileChangedType ChangeType { get; set; }
Property Value
Type | Description |
---|---|
AssetFileChangedType | The type of the change. |
Hash
Gets or sets the hash of the asset source (optional).
public ObjectId? Hash { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ObjectId> | The hash of the asset source. |
Package
Gets the package the event is related to.
public Package Package { get; set; }
Property Value
Type | Description |
---|---|
Package | The package. |