Exemple #1
0
        public static ExternalPlayModeView CreateExternalPlayModeView()
        {
            ExternalPlayModeView win = EditorWindow.CreateWindow <ExternalPlayModeView>();

            win.m_NativeContextPtr.m_IntPtr = Internal_InitWindow();
            return(win);
        }
        static PlayModeView GetOrCreateWindow()
        {
            var view = PlayModeView.GetMainPlayModeView();

            if (view == null)
            {
                return(EditorWindow.CreateWindow <GameView>());
            }

            return(view);
        }