MinAttribute
Attribute used to make a float or int variable in a script be restricted to a specific minimum value.
阅读时间3 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: PropertyAttribute
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]public sealed class MinAttribute : PropertyAttribute
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. |