AxibugEmuOnline/AxibugEmuOnline.Client.PSVita/Assets/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/Attributes/MinAttribute.cs

26 lines
722 B
C#

using System;
namespace UnityEngine.Rendering.PostProcessing
{
/// <summary>
/// Use this attribute to clamp floating point values to a minimum value in the inspector.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class MinAttribute : Attribute
{
/// <summary>
/// The minimum value the field will be clamped to.
/// </summary>
public readonly float min;
/// <summary>
/// Creates a new attribute.
/// </summary>
/// <param name="min">The minimum value the field will be clamped to</param>
public MinAttribute(float min)
{
this.min = min;
}
}
}