Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetFileChangedEvent Class

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

    An event that notifies the type of disk change for an asset.

    System.Object → System.EventArgs → AssetFileChangedEvent
    Derived from AssetFileChangedEvent:

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.


    Inherited Members

    System.EventArgs.Empty

    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