WuhuIslandTesting/Library/PackageCache/com.unity.scriptablebuildpipeline@1.21.5/Editor/Utilities/VersionedCallbackAttribute.cs
2025-01-07 02:06:59 +01:00

26 lines
No EOL
1.1 KiB
C#

#if UNITY_2019_4_OR_NEWER
using System;
namespace UnityEditor.Build.Pipeline.Utilities
{
/// <summary>
/// Attribute provides the version details for IProcessScene, IProcessSceneWithReport, IPreprocessShaders, and IPreprocessComputeShaders callbacks.
/// Increment the version number when the callback changes and the build result needs to change.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public class VersionedCallbackAttribute : Attribute
{
public readonly float version;
/// <summary>
/// Attribute provides the version details for IProcessScene, IProcessSceneWithReport, IPreprocessShaders, and IPreprocessComputeShaders callbacks.
/// Increment the version number when the callback changes and the build result needs to change.
/// </summary>
/// <param name="version">The version of this callback.</param>
public VersionedCallbackAttribute(float version)
{
this.version = version;
}
}
}
#endif