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