s&box docs

public class Sandbox.RangeAttribute : System.Attribute

Mark this property as a ranged float/int. In inspector we'll be able to create a slider instead of a text entry.

Constructors

Showing 3 constructors

Properties

Showing 5 properties

public bool Sandbox.RangeAttribute.Clamped { get; set; }

Whether or not the value should be clamped to the range. If false, the user can manually enter values outside the range if they wish.

public float Sandbox.RangeAttribute.Max { get; set; }

The maximum value of the range.

public float Sandbox.RangeAttribute.Min { get; set; }

The minimum value of the range.

public bool Sandbox.RangeAttribute.Slider { get; set; }

Whether or not a slider should be shown for this range.

public float Sandbox.RangeAttribute.Step { get; set; }Obsolete

Obsolete: Use [Step] attribute instead

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.RangeAttribute

On this page