Table of Contents

Class ValidateRangeAttribute

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Attribute used to mark fields that should have a specific range.

[AttributeUsage(AttributeTargets.Field)]
[Version(4, 3, 0)]
public class ValidateRangeAttribute : ValidationAttribute
Inheritance
ValidateRangeAttribute
Inherited Members
Extension Methods

Remarks

Works fields of type int and float.

Constructors

ValidateRangeAttribute(float, float)

Methods

Constrain(SerializedProperty)

Constrains the property to be within the specified range.

IsValid(SerializedProperty)

Checks if the property is within the specified range.