debug button

This commit is contained in:
ousttrue
2021-12-08 19:58:33 +09:00
parent d2af3e5575
commit 2bca456893

View File

@@ -106,13 +106,24 @@ namespace UniVRM10
serializedObject.Update();
EditorGUILayout.HelpBox("Experimental", MessageType.Warning);
EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(VrmScriptedImporter.RenderPipeline)));
serializedObject.ApplyModifiedProperties();
}
ApplyRevertGUI();
break;
case Vrm10FileType.Vrm0:
EditorGUILayout.HelpBox(m_result.Message, m_model != null ? MessageType.Info : MessageType.Warning);
#if VRM_DEVELOP
if (GUILayout.Button("debug export"))
{
File.WriteAllBytes("tmp.vrm", UniGLTF.Glb.Create(m_result.Data.Json, m_result.Data.Bin).ToBytes());
}
#endif
// migration check boxs
base.OnInspectorGUI();
break;