Version: 2018.4
  • C#


Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



public static Vector3 ScaleHandle(Vector3 scale, Vector3 position, Quaternion rotation, float size);


scaleScale to modify.
positionThe position of the handle.
rotationThe rotation of the handle.
sizeAllows you to scale the size of the handle on-scren.


Vector3 The new value modified by the user's interaction with the handle. If the user has not moved the handle, it will return the same value as you passed into the function.


Make a Scene view scale handle.

This will behave like the built-in scale tool

Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.

Scale handle that will appear whenever you select the GameObject.

// Name this script "ScaleAtPointEditor"
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(ScaleAtPoint))] [CanEditMultipleObjects] public class ScaleAtPointEditor : Editor { public void OnSceneGUI() { ScaleAtPoint t = (target as ScaleAtPoint);

EditorGUI.BeginChangeCheck(); Vector3 scale = Handles.ScaleHandle(t.scale,, Quaternion.identity, 1); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(target, "Scaled ScaleAt Point"); t.scale = scale; t.Update(); } } }

And the script Attached to this GameObject:

// Name this script "ScaleAtPoint"
using UnityEngine;
public class ScaleAtPoint : MonoBehaviour
    public Vector3 scale =;
    public void Update()
        transform.localScale = scale;