static function ScaleValueHandle (value : float, position : Vector3, rotation : Quaternion, size : float, capFunc : DrawCapFunction, snap : float) : float
Parameters
| Name | Description |
| value |
the value the user can modify.
|
| position |
the position of the handle.
|
| rotation |
the rotation of the handle.
|
| size |
the size of the handle.
|
| capFunc |
the function to use for drawing the handle e.g. Handles.RectangleCap.
|
| snap |
the new value after the user has modified it. Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.
|
Description
Make a single-float draggable handle.
This is used to make the center scale handle. The user can click and drag to scale a single float up and down.

Scale Value handle in the scene view with an arrow cap as the handle.
@CustomEditor (ScaleValueModifier)
class ScaleValue extends Editor {
function OnSceneGUI () {
target.floatVal =
Handles.ScaleValueHandle(target.floatVal,
target.transform.position,
Quaternion.identity,
30,
Handles.ArrowCap,
1);
if (GUI.changed)
EditorUtility.SetDirty (target);
}
}
And the script attached to this Handle:
@script ExecuteInEditMode()
var floatVal : float = 1;
function Update() {
Debug.Log("Value Modified: " + floatVal);
}