EditorGUI.LogarithmicIntSlider

Declaration

public static int LogarithmicIntSlider(Rect position, string label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax);

Declaration

public static int LogarithmicIntSlider(Rect position, GUIContent label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax);

Parameters

position Rectangle on the screen to use for the long field.
label Label to display in front of the long field.
sliderValue The value to edit.
leftValue The value at the left end of the slider.
rightValue The value at the right end of the slider.
logbase The logarithm base. The resulting value will be a power of this value.
textFieldMin The value to display at the left end of the slider.
textFieldMax The value to display at the right end of the slider.

Returns

int The value entered by the user.

Description

Makes a text field for entering an integer on a logarithmic scale.

Additional resources: IntField, FloatField, DoubleField.


Did you find this page useful? Please give it a rating: