Added lua exporting

This commit is contained in:
2025-04-09 22:20:52 +02:00
parent 765575d7ae
commit b3da188438
10 changed files with 161 additions and 34 deletions

View File

@@ -0,0 +1,15 @@
using Splashedit.RuntimeCode;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(LuaFile))]
public class LuaScriptAssetEditor : Editor
{
public override void OnInspectorGUI()
{
LuaFile luaScriptAsset = (LuaFile)target;
// Allow user to drag-and-drop the Lua file
luaScriptAsset.luaScript = (TextAsset)EditorGUILayout.ObjectField("Lua Script", luaScriptAsset.luaScript, typeof(TextAsset), false);
}
}