Пример #1
0
        static void Init () {

            VSEWindow window = (VSEWindow)EditorWindow.GetWindow(typeof(VSEWindow));
            Instance = window;

            //create background texture.
            backgroundTexture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
            backgroundTexture.SetPixel(0, 0, new Color(0.25f, 0.25f, 0.25f, 1));
            backgroundTexture.Apply();

            header = new VSEHeader(window);
            swatchCategory = new VSESwatchCategoryPanel(window);
            groupInspector = new VSEGroupInspector(window);

            window.Show();
            window.titleContent.text = "Voxel Swatch Editor";

        }
Пример #2
0
        static void Init()
        {
            VSEWindow window = (VSEWindow)EditorWindow.GetWindow(typeof(VSEWindow));

            Instance = window;

            //create background texture.
            backgroundTexture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
            backgroundTexture.SetPixel(0, 0, new Color(0.25f, 0.25f, 0.25f, 1));
            backgroundTexture.Apply();

            header         = new VSEHeader(window);
            swatchCategory = new VSESwatchCategoryPanel(window);
            groupInspector = new VSEGroupInspector(window);

            window.Show();
            window.titleContent.text = "Voxel Swatch Editor";
        }