Photon Fusion 2.1.1

RangeExAttribute Class Reference

Represents an attribute that specifies a range of values for a field or property. More...

Inherits DrawerPropertyAttribute.

Public Member Functions

 RangeExAttribute (double min, double max)
 Initializes a new instance of the RangeExAttribute class with the specified minimum and maximum values.
Public Member Functions inherited from PropertyAttribute
 PropertyAttribute (bool applyToCollection=false)

Public Attributes

bool ClampMax = true
 Gets or sets a value indicating whether the maximum value should be clamped.
bool ClampMin = true
 Gets or sets a value indicating whether the minimum value should be clamped.
bool UseSlider = true
 Gets or sets a value indicating whether a slider should be used for the range.
double[] Values
 Possible values.

Properties

double Max [get]
 Gets the maximum value of the range.
double Min [get]
 Gets the minimum value of the range.
Properties inherited from PropertyAttribute
new bool applyToCollection [get]

Additional Inherited Members

Protected Member Functions inherited from DrawerPropertyAttribute
 DrawerPropertyAttribute (bool applyToCollection=false)

Detailed Description

Represents an attribute that specifies a range of values for a field or property.

Constructor & Destructor Documentation

◆ RangeExAttribute()

RangeExAttribute ( double min,
double max )

Initializes a new instance of the RangeExAttribute class with the specified minimum and maximum values.

Parameters
minThe minimum value of the range.
maxThe maximum value of the range.