UnityEditor.GameView.GetMainGameView C# (CSharp) Method

GetMainGameView() static private method

static private GetMainGameView ( ) : GameView
return GameView
        internal static GameView GetMainGameView()
        {
            if (((s_LastFocusedGameView == null) && (s_GameViews != null)) && (s_GameViews.Count > 0))
            {
                s_LastFocusedGameView = s_GameViews[0];
            }
            return s_LastFocusedGameView;
        }

Usage Example

Exemplo n.º 1
0
        internal static Rect GetMainGameViewRenderRect()
        {
            GameView mainGameView = GameView.GetMainGameView();

            if (mainGameView != null)
            {
                GameView.s_MainGameViewRect = mainGameView.GetConstrainedGameViewRenderRect();
            }
            return(GameView.s_MainGameViewRect);
        }
All Usage Examples Of UnityEditor.GameView::GetMainGameView