Exemple #1
0
        public static void FocusOnSelection(Vector3 position, float zoom = -1f)
        {
            if (ExtSceneView.IsClose(position, Vector3.zero, 0.1f))
            {
                return;
            }

            if (SceneView.lastActiveSceneView == null)
            {
                return;
            }

            SceneView.lastActiveSceneView.LookAt(position);
            if (zoom != -1)
            {
                ExtSceneView.ViewportPanZoomIn(zoom);
            }
        }
 public static void DrawSphereArrow(Color newColor, Vector3 position, float sizeRatio = 1f)
 {
     DrawSphereArrow(newColor, position, ExtSceneView.GetSceneViewCameraTransform().rotation, sizeRatio);
 }