Skip to content

Instantly share code, notes, and snippets.

@fabSchneider
fabSchneider / LuaScriptImporter.cs
Created February 10, 2022 10:36
This scripted importer will allow to import files with .lua extension as text assets into Unity.
using System.IO;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEngine;
/// <summary>
/// Scripted importer for files with .lua extension.
/// Will create a text asset from the lua script
/// </summary>
[ScriptedImporter(1, "lua")]