/// <summary> /// Initializes a new instance of the <see cref="AssetFileChangedEvent"/> class. /// </summary> /// <param name="package">The package.</param> /// <param name="changeType">Type of the change.</param> /// <param name="assetLocation">The asset URL.</param> public AssetFileChangedEvent(Package package, AssetFileChangedType changeType, UFile assetLocation) { Package = package; ChangeType = changeType; AssetLocation = assetLocation.GetDirectoryAndFileNameWithoutExtension(); // Make sure we are using the location withint the package without the extension }
/// <summary> /// Initializes a new instance of the <see cref="AssetFileChangedEvent"/> class. /// </summary> /// <param name="package">The package.</param> /// <param name="changeType">Type of the change.</param> /// <param name="assetLocation">The asset URL.</param> public AssetFileChangedEvent(Package package, AssetFileChangedType changeType, UFile assetLocation) { Package = package; ChangeType = changeType; AssetLocation = assetLocation.GetDirectoryAndFileName(); // Make sure we are using the location withint the package without the extension }