Summary
[Pro-Only]
Specifies the maximum value allowed by the attributed int or float field.
See also:
InspectorGadgets.Attributes.MinValueAttribute and InspectorGadgets.Attributes.ClampValueAttribute.
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
.Attributes - Base Types
-
- PropertyAttribute
- ValidatorAttribute
graph BT
Type-->Base0["ValidatorAttribute"]
click Base0 "/inspector-gadgets/api/InspectorGadgets.Attributes/ValidatorAttribute"
Base0-->Base1["PropertyAttribute"]
Type["MaxValueAttribute"]
class Type type-node
Syntax
[System.Diagnostics.Conditional("UNITY_EDITOR")]
public sealed class MaxValueAttribute : ValidatorAttribute
Attributes
| Type | Description |
|---|---|
| ConditionalAttribute |
Constructors
| Name | Summary |
|---|---|
| MaxValueAttribute |
Creates a new InspectorGadgets.Attributes.MaxValueAttribute with the specified maximum value. |
| MaxValueAttribute |
Creates a new InspectorGadgets.Attributes.MaxValueAttribute with the specified maximum value. |
| MaxValueAttribute |
Creates a new InspectorGadgets.Attributes.MaxValueAttribute with the specified maximum value. |
| MaxValueAttribute |
Creates a new InspectorGadgets.Attributes.MaxValueAttribute with the specified maximum value. |
Fields
Methods
| Name | Value | Summary |
|---|---|---|
| TryValidate |
bool |
Validates a
double value or returns false to revert to the previous value. |
| TryValidate |
bool |
Validates a
long value or returns false to revert to the previous value. |
| TryValidate |
bool |
Validates an
UnityEngine.Object value or returns false to revert to the previous value.Inherited from ValidatorAttribute
|