コード例 #1
0
        private static void Init()
        {
            /*
             * var filePath = Application.dataPath + "/_MK/_MKGlowSystem/_Internal/Editor/_Image/MKGlowSystemSceneViewSettingsTitle.png";
             * if (System.IO.File.Exists(filePath))
             * {
             * var bytes = System.IO.File.ReadAllBytes(filePath);
             * if (m_SceneViewLabel == null)
             * {
             * m_SceneViewLabel = new Texture2D(128, 128);
             * m_SceneViewLabel.LoadImage(bytes);
             * }
             * }
             */
            SceneViewWindow.Show();
            SceneViewWindow.minSize = new Vector2(400, 275);
            SceneViewWindow.maxSize = new Vector2(400, 275);

            Load();
        }
コード例 #2
0
 public void Show(Vector2 position)
 {
     SceneViewWindow.Show(OnWindowGUI, new Vector2(m_windowWidth, 0), position + new Vector2(-0.5f * m_windowWidth, -10), WindowTitle.text);
 }