Class MinAttribute
Use this attribute to clamp floating point values to a minimum value in the inspector.
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class MinAttribute : Attribute, _Attribute
Constructors
MinAttribute(Single)
Creates a new attribute.
Declaration
public MinAttribute(float min)
Parameters
Type | Name | Description |
---|---|---|
Single | min | The minimum value the field will be clamped to |
Fields
min
The minimum value the field will be clamped to.
Declaration
public readonly float min
Field Value
Type | Description |
---|---|
Single |