diff --git a/Assets/Fungus/Scripts/Editor/LuaScriptedImporter.cs b/Assets/Fungus/Scripts/Editor/LuaScriptedImporter.cs index 4c3f88ce..b21a7a61 100644 --- a/Assets/Fungus/Scripts/Editor/LuaScriptedImporter.cs +++ b/Assets/Fungus/Scripts/Editor/LuaScriptedImporter.cs @@ -2,13 +2,16 @@ using UnityEditor.Experimental.AssetImporters; using System.IO; -[ScriptedImporter(1, "lua")] -public class LuaScriptedImporter : ScriptedImporter +namespace Fungus.EditorUtils { - public override void OnImportAsset(AssetImportContext ctx) - { - TextAsset lua = new TextAsset(File.ReadAllText(ctx.assetPath)); - ctx.AddObjectToAsset("main", lua); - ctx.SetMainObject(lua); - } -} + [ScriptedImporter(1, "lua")] + public class LuaScriptedImporter : ScriptedImporter + { + public override void OnImportAsset(AssetImportContext ctx) + { + TextAsset lua = new TextAsset(File.ReadAllText(ctx.assetPath)); + ctx.AddObjectToAsset("main", lua); + ctx.SetMainObject(lua); + } + } +} \ No newline at end of file