private void DrawRadiusHandle(SpherifyDeformer spherify) { using (new Handles.DrawingScope(Matrix4x4.TRS(spherify.Axis.position, spherify.Axis.rotation, spherify.Axis.lossyScale))) { using (var check = new EditorGUI.ChangeCheckScope()) { var newRadius = DeformHandles.Radius(Quaternion.identity, Vector3.zero, spherify.Radius); if (check.changed) { Undo.RecordObject(spherify, "Changed Radius"); spherify.Radius = newRadius; } } } }