Exemplo n.º 1
0
        static void Open()
        {
            isInit = false;
            //ReadMe window = GetWindow<ReadMe>();
            ReadMe window = GetWindow <ReadMe>(typeof(EditorWindow).Assembly.GetType("VRMIO.ReadMe"));

            window.position = new Rect(100, 100, 550, 800);
        }
Exemplo n.º 2
0
        static void AutoOpen()
        {
            //セットアップが終わっていたら自動表示なし(Define定義をトリガーとする)
            if (IsExistDefineSymbols(BuildTargetGroup.WebGL, "VRMIO") && IsExistDefineSymbols(BuildTargetGroup.Standalone, "VRMIO"))
            {
                return;
            }

            //ゲーム再生時に呼び出された場合は表示しない
            if (EditorApplication.isPlayingOrWillChangePlaymode)
            {
                return;
            }

            //開く(同じウィンドウは開かないように.GetTypeで検索する)
            ReadMe window = GetWindow <ReadMe>(typeof(EditorWindow).Assembly.GetType("VRMIO.ReadMe"));

            window.position = new Rect(100, 100, 550, 800);
        }