private static GetRectAxisForViewDir ( |
||
bounds | ||
rotation | ||
viewDir | Vector3 | |
return | int |
internal static void LockHandleRectRotation() { Bounds bounds = InternalEditorUtility.CalculateSelectionBoundsInSpace(Tools.handlePosition, Tools.handleRotation, Tools.rectBlueprintMode); Tools.s_LockHandleRectAxis = Tools.GetRectAxisForViewDir(bounds, Tools.handleRotation, SceneView.currentDrawingSceneView.camera.transform.forward); Tools.s_LockHandleRectAxisActive = true; }