Esempio n. 1
0
        public static void ShowWindow()
        {
            MeshSaverGUI window = GetWindow <MeshSaverGUI>();

            window.titleContent = new GUIContent("Mesh Saver");
            window.Show();
        }
Esempio n. 2
0
        public static void ShowWindow(TerrainGenerator terrain)
        {
            MeshSaverGUI window = GetWindow <MeshSaverGUI>();

            window.titleContent = new GUIContent("Mesh Saver");
            window.target       = terrain.MeshFilterComponent;
            window.meshName     = terrain.name;
            window.Show();
        }