public override void OnInspectorGUI() { DrawDefaultInspector(); var t = target as MeshSyncServer; GUILayout.Label("Material List", EditorStyles.boldLabel); DrawMaterialList(t); EditorGUILayout.Space(); if (GUILayout.Button("Open Material Window")) { MaterialWindow.Open(t); } EditorGUILayout.Space(); if (GUILayout.Button("Generate Lightmap UV")) { t.GenerateLightmapUV(); } EditorGUILayout.Space(); if (GUILayout.Button("Export Meshes")) { t.ExportMeshes(); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); var t = target as MeshSyncServer; GUILayout.Label("Material List", EditorStyles.boldLabel); DrawMaterialList(t); EditorGUILayout.Space(); //GUILayout.Label("Texture List", EditorStyles.boldLabel); //DrawTextureList(t); EditorGUILayout.Space(); if (GUILayout.Button("Open Material Window")) { MaterialWindow.Open(t); } EditorGUILayout.Space(); //if (GUILayout.Button("Generate Lightmap UV")) // t.GenerateLightmapUV(); //EditorGUILayout.Space(); if (GUILayout.Button("Export Meshes")) { t.ExportMeshes(); } EditorGUILayout.Space(); if (GUILayout.Button("Export Materials")) { t.ExportMaterials(); } EditorGUILayout.Space(); EditorGUILayout.LabelField("Plugin Version: " + MeshSyncServer.version); }