GetRectAxisForViewDir() private static method

private static GetRectAxisForViewDir ( Bounds bounds, Quaternion rotation, Vector3 viewDir ) : int
bounds UnityEngine.Bounds
rotation UnityEngine.Quaternion
viewDir Vector3
return int
示例#1
0
        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;
        }