Example #1
0
 public void SetGrabTransformationType()
 {
     Manager.Instance.GIZMO.DisableGizmo = true;
     SELECTED_GO.GetComponent <HandDraggable>().enabled = true;
     // Turn off other things
     ActiveteVertex(false);
     ActivateEdge(false);
     ActivateFace(false);
     // Reactivate the Cube mode, in order to have the gizmo displyed.
     // TODO: Grab only works with Mode
     StartCoroutine(SELECTED_PRCUBE.TurnOnCube());
     DeactivateContexMenu(true);
 }
Example #2
0
 public void SetDefaultTransformationType()
 {
     Manager.Instance.GIZMO.GizmoGo.GetComponent <GizmoObject>().ActivateDefaultGizmo();
     // Disply the gizmo arrows.
     Manager.Instance.GIZMO.DisableGizmo = false;
     // Disble Grab script in selected primitive.
     SELECTED_GO.GetComponent <HandDraggable>().enabled = false;
     // Reactivate the Cube mode, in order to have the gizmo displyed.
     if (SELECTED_PRCUBE.GeoModeActive)
     {
         StartCoroutine(SELECTED_PRCUBE.TurnOnCube());
     }
     DeactivateContexMenu(true);
 }