Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

Type

Description

intThe 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

position

Rectangle on the screen to use for the long field.

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

Type

Description

intThe value entered by the user.

Remarks