Max Value Attribute

MaxValue is used on primitive fields. It caps value of the field to a maximum value. Use this to define a maximum value for the field.

// Ints
[Title("Int")]
[MinValue(0)]
public int IntMinValue0;

[MaxValue(0)]
public int IntMaxValue0;

// Floats
[Title("Float")]
[MinValue(0)]
public float FloatMinValue0;

[MaxValue(0)]
public float FloatMaxValue0;

// Vectors
[Title("Vectors")]
[MinValue(0)]
public Vector3 Vector3MinValue0;

[MaxValue(0)]
public Vector3 Vector3MaxValue0;