Wrap Attribute

Wrap is used on most primitive property, and allows for wrapping the value when it goes out of the defined range. Use this when you want a value that goes around in circle, like for example an angle.

[Wrap(0f, 100f)]
public int IntWrapFrom0To100;

[Wrap(0f, 100f)]
public float FloatWrapFrom0To100;

[Wrap(0f, 100f)]
public Vector3 Vector3WrapFrom0To100;

[Wrap(0f, 360)]
public float AngleWrap;

[Wrap(0f, Mathf.PI * 2)]
public float RadianWrap;