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

            window.titleContent = new GUIContent("Mesh Saver");
            window.Show();
        }
Ejemplo 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();
        }