You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
722 B
25 lines
722 B
using System;
|
|
|
|
namespace UnityEngine.Rendering.PostProcessing
|
|
{
|
|
/// <summary>
|
|
/// Use this attribute to clamp floating point values to a maximum value in the inspector.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
|
|
public sealed class MaxAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// The maximum value the field will be clamped to.
|
|
/// </summary>
|
|
public readonly float max;
|
|
|
|
/// <summary>
|
|
/// Creates a new attribute.
|
|
/// </summary>
|
|
/// <param name="max">The maximum value the field will be clamped to</param>
|
|
public MaxAttribute(float max)
|
|
{
|
|
this.max = max;
|
|
}
|
|
}
|
|
}
|