Recursive calling of ObjectExporters from a SceneExporter, icons
This commit is contained in:
17
Editor/PSXSceneExporterEditor.cs
Normal file
17
Editor/PSXSceneExporterEditor.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using PSXSplash.Runtime;
|
||||
|
||||
[CustomEditor(typeof(PSXSceneExporter))]
|
||||
public class PSXSceneExporterEditor : Editor {
|
||||
public override void OnInspectorGUI() {
|
||||
base.OnInspectorGUI();
|
||||
DrawDefaultInspector();
|
||||
|
||||
PSXSceneExporter comp = (PSXSceneExporter)target;
|
||||
if(GUILayout.Button("Export")) {
|
||||
comp.Export();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user