RemapAttribute¶
Namespace:
SideXP.Core| Inherits from:PropertyAttribute
Displays a value expected between "from" minimum and maximum on GUI, and remaps it in this field as a value between "to" minimum and maximum.
Constructors¶
RemapAttribute()¶
Displays a value expected between 0 and 100 on GUI, and remaps it in this field as a value between 0 and 1.
RemapAttribute(float, float)¶
Displays a value expected between 0 and fromMax on GUI, and remaps it in this field as a value between 0 and toMax.
Parameters
fromMax: The maximum value displayed on GUI.toMax: The maximum field value.
RemapAttribute(float, float, float, float)¶
Displays a value expected between fromMin and fromMax on GUI, and remaps it in this field as a value between toMin and toMax.
Parameters
fromMin: The minium value displayed on GUI.fromMax: The maximum value displayed on GUI.toMin: The minimum field value.toMax: The maximum field value.
Properties¶
FromMin¶
The minium value displayed on GUI.
FromMax¶
The maximum value displayed on GUI.
ToMin¶
The minimum field value.
ToMax¶
The maximum field value.
Units¶
The unit to display on GUI.
Clamped¶
If enabled, the value is clamped between its allowed bounds.