MinAttribute
Attribute used to make a float or int variable in a script be restricted to a specific minimum value.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: PropertyAttribute
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]public sealed class MinAttribute : PropertyAttribute, _Attribute
Fields
Value | Description |
|---|---|
| min | The minimum allowed value. |
Constructors
Constructor | Description |
|---|---|
| MinAttribute(System.Single) | Attribute used to make a float or int variable in a script be restricted to a specific minimum value. |