void SetTransformSpace(GizmoSpace transformSpace) { _objectMoveGizmo.SetTransformSpace(transformSpace); _objectRotateionGizmo.SetTransformSpace(transformSpace); _objectScaleGizmo.SetTransformSpace(transformSpace); _objectUniversalGizmo.SetTransformSpace(transformSpace); }
/// <summary> /// Called from the 'Update' function in response to user input in order /// to change the transform space for all gizmos. The parameter represents /// the desired transform space and is of type 'GizmoSpace'. This is an enum /// with 2 mamebers: Global and Local. /// </summary> private void SetTransformSpace(GizmoSpace transformSpace) { // In order to change the transform space for a gizmo, we need to call the // gizmo's 'SetTransformSpace' function. We do this for all gizmos and pass // the specified transform space as parameter. _objectMoveGizmo.SetTransformSpace(transformSpace); _objectRotationGizmo.SetTransformSpace(transformSpace); _objectScaleGizmo.SetTransformSpace(transformSpace); _objectUniversalGizmo.SetTransformSpace(transformSpace); }