PropertyRangeAttribute

PropertyRange attribute creates a slider control to set the value of a property to between the specified range.

This is equivalent to Unity's Range attribute, but this attribute can be applied to both fields and property.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)384, AllowMultiple = False, Inherited = True)]
public sealed class PropertyRangeAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Constructors

Definition Description
PropertyRangeAttribute(double, double) Creates a slider control to set the value of the property to between the specified range..

Properties

Return Type Definition Description
double Max The maximum value.
double Min The minimum value.

Example

The following example demonstrates how PropertyRange is used.