Page 1 of 1
LUA Console history question
Posted: Mon Sep 10, 2018 12:20 pm
by wx3
Is it possible to inject commands into the console's history? It would greatly speed up testing if I could put some commands in the history so I didn't have to type them in each time. I'm on the 1.x version, btw.
Re: LUA Console history question
Posted: Mon Sep 10, 2018 4:48 pm
by Tony Li
There isn't a built-in way. You could add a script that defines some really short Lua functions such as A(), B(), etc., or even register short C# functions with Lua. Or you could import LuaConsole.cs from the SourceCode.unitypackage, rename it (e.g., LuaConsole2), and add your customizations.