准备的工具:luac.exe CSDNhttps://mp.csdn.net/mp_download/manage/download/UpDetailed
Unity版:
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
public static class Batch_LuaToLuac
{
[UnityEditor.MenuItem("Tools/LuaToLuac")]
static void ToLuac()
{
//准备进程信息
string luacExe = "luac53.exe"; //luac.exe工具文件名
string luacExe_Dir = @"D:\workspace\Test\T4\PureProject_Develop\Development2020\Tools\Lua"; //luac.exe工具路径
string luacExe_fullpath = Path.