5.22 – Knob

Knob

Knob can be thought as a rotary slider. Useful for controls like volume control knob.

On Value Change
On Value Change property is an Action List which is triggered when the value of knob changes.

Min Angle
Min Angle is the angle when the knob has its minimum value.

Max Angle
Max Angle is the angle when the knob has its maximum value.

Min Value
Min Value property is the minimum allowed value of knob.
Knob
Max Value
Max Value property is the maximum allowed value of knob.

Value
Value property is used to set the initial value of the knob.

Control Type
Control Type property is used to determine the user interaction strategy of the knob. There are 4 types of control :

  • Point at : Knob directly points mouse position.
  • Physical rotate : Knob rotates like a real knob, according to the mouse position change.
  • Vertical slider : Knob rotates with vertical drag motion. Upper the mouse goes, the value of knob increases.
  • Horizontal slider : Knob rotates with horizontal drag motion. The value of knob increases when the mouse goes right.

Read only
Read only property is used to make knob read-only.

Indicator Padding
Indicator Padding property is used adjust the size of rotating part (indicator) of the knob.

Knob Indicator
Knob Indicator property is a GUIStyle and used to fine-tune the visual appearance of the rotating part (indicator) of the knob.

Knob Background
Knob Background property is a GUIStyle and used to fine-tune the visual appearance of the static background of the knob.