Class ValidatePositiveAttribute
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Attribute used to mark fields that should be positive.
[AttributeUsage(AttributeTargets.Field)]
[Version(4, 3, 0)]
public class ValidatePositiveAttribute : ValidationAttribute
- Inheritance
-
ValidatePositiveAttribute
- Derived
- Inherited Members
- Extension Methods
Constructors
- ValidatePositiveAttribute()
Initializes a new instance of the ValidatePositiveAttribute class.
Methods
- Constrain(SerializedProperty)
Constraints the property to be positive.
- IsValid(SerializedProperty)
Checks if the property is positive.