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