LogarithmicIntSlider
Makes a text field for entering an integer on a logarithmic scale.
Read time 2 minutesLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
LogarithmicIntSlider(Rect, string, int, int, int, int, int, int)
Makes a text field for entering an integer on a logarithmic scale.
public static int LogarithmicIntSlider(Rect position, string label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax)
Parameters
Rectangle on the screen to use for the long field.
Label to display in front of the long field.
The value to edit.
The value at the left end of the slider.
The value at the right end of the slider.
The logarithm base. The resulting value will be a power of this value.
The value to display at the left end of the slider.
The value to display at the right end of the slider.
Returns
Type | Description |
|---|---|
| int | The value entered by the user. |
Remarks
LogarithmicIntSlider(Rect, GUIContent, int, int, int, int, int, int)
Makes a text field for entering an integer on a logarithmic scale.
public static int LogarithmicIntSlider(Rect position, GUIContent label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax)
Parameters
Rectangle on the screen to use for the long field.
Label to display in front of the long field.
The value to edit.
The value at the left end of the slider.
The value at the right end of the slider.
The logarithm base. The resulting value will be a power of this value.
The value to display at the left end of the slider.
The value to display at the right end of the slider.
Returns
Type | Description |
|---|---|
| int | The value entered by the user. |