Recursive calling of ObjectExporters from a SceneExporter, icons

This commit is contained in:
2025-01-13 19:59:41 +01:00
commit d1c734f078
23 changed files with 1105 additions and 0 deletions

View 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();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 89b9844e599dd374098ec6168f0de0b0

View 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();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: becf2eb607e7a60baaf3bebe4683d66f

View File

@@ -0,0 +1,16 @@
{
"name": "net.psxplash.splashedit.Editor",
"rootNamespace": "",
"references": [
"net.psxsplash.splashedit.Runtime"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7e3500b5974da9723bdd0d457348ea2d
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: