Method Constrain
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Constrain(SerializedProperty)
Constraints the property to be positive.
protected override void Constrain(SerializedProperty property)
Parameters
propertySerializedProperty
Remarks
If the property is less than or equal to 0, it is constrained to 1 for integers and 0.1 for floats.