private static void DrawCameraBound(Camera camera, GizmoType gizmoType)
        {
            SceneView currentDrawingSceneView = SceneView.currentDrawingSceneView;

            if (currentDrawingSceneView != null && currentDrawingSceneView.in2DMode && camera == Camera.main && camera.orthographic)
            {
                CameraEditor.RenderGizmo(camera);
            }
        }
        private static void DrawCameraBound(Camera camera, GizmoType gizmoType)
        {
            SceneView drawingSceneView = SceneView.currentDrawingSceneView;

            if (!((UnityEngine.Object)drawingSceneView != (UnityEngine.Object)null) || !drawingSceneView.in2DMode || (!((UnityEngine.Object)camera == (UnityEngine.Object)Camera.main) || !camera.orthographic))
            {
                return;
            }
            CameraEditor.RenderGizmo(camera);
        }
Exemple #3
0
        static void DrawCameraBound(Camera camera, GizmoType gizmoType)
        {
            var sv = SceneView.currentDrawingSceneView;

            if (sv != null && sv.in2DMode)
            {
                if (camera == Camera.main && camera.orthographic)
                {
                    CameraEditor.RenderGizmo(camera);
                }
            }
        }