Beispiel #1
0
        public static void ShowWindow()
        {
            MeshSaverGUI window = GetWindow <MeshSaverGUI>();

            window.titleContent = new GUIContent("Mesh Saver");
            window.Show();
        }
Beispiel #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();
        }
Beispiel #3
0
        private static void ShowExportDataContextMenu(Rect r, TerrainGenerator instance)
        {
            GenericPopup menu = new GenericPopup();

            menu.AddItem(
                new GUIContent("3D file from Mesh"),
                false,
                () => { MeshSaverGUI.ShowWindow(instance); });
            menu.AddSeparator();
            menu.AddItem(
                new GUIContent("UV layout"),
                false,
                () => { TextureExporterGUI.ShowWindow(instance, TextureExporter.TextureType.UvLayout); });
            menu.AddItem(
                new GUIContent("Vertex color map"),
                false,
                () => { TextureExporterGUI.ShowWindow(instance, TextureExporter.TextureType.VertexColor); });
            menu.AddItem(
                new GUIContent("Height map"),
                false,
                () => { HeightMapExporterGUI.ShowWindow(instance); });
            menu.Show(r);
        }
 public static void ShowMeshSaver()
 {
     MeshSaverGUI.ShowWindow();
 }