-
Notifications
You must be signed in to change notification settings - Fork 35
Editor utils
Antoine Lelievre edited this page Mar 28, 2018
·
1 revision
void ColorPicker(Rect iconRect, ref Color c, string controlName, bool preview = true);
void ColorPicker(Rect iconRect, ref SerializableColor c, string controlName, bool preview = true);
a simple color picker.
void Slider(Rect sliderRect, string controlName, ref float value, float min, float max, float step = 0.01f);
void Slider(Rect sliderRect, string name, string controlName, ref float value, ref float min, ref float max, float step = 0f, bool editableMin = true, bool editableMax = true);
void Slider(Rect sliderRect, string name, string controlName, ref float value, float min, float max, float step = 0f);
void IntSlider(Rect intSliderRect, string controlName, ref int value, int min, int max, int step = 1);
void IntSlider(Rect intSliderRect, string name, string controlName, ref int value, ref int min, ref int max, int step = 1, bool editableMin = true, bool editableMax = true);
void IntSlider(Rect intSliderRect, string name, string controlName, int value, int min, ref int max, int step = 1);
a simple min-max editable slider.
void TextField(Vector2 textRect, ref string text, string controlName, bool editable = false, GUIStyle style);
a simple editable textField.