Firstborn/Library/PackageCache/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Attributes/MinMaxAttribute.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

33 lines
963 B
C#

using System;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// Use this attribute to specify a range between a min and a max value.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class MinMaxAttribute : Attribute
{
/// <summary>
/// The minimum limit of the user defined range.
/// </summary>
public readonly float min;
/// <summary>
/// The maximum limit of the user defined range.
/// </summary>
public readonly float max;
/// <summary>
/// Creates a new attribute.
/// </summary>
/// <param name="min">The minimum limit of the user defined range</param>
/// <param name="max">The maximum limit of the user defined range</param>
public MinMaxAttribute(float min, float max)
{
this.min = min;
this.max = max;
}
}
}