LUA Console history question

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
wx3
Posts: 10
Joined: Mon Aug 08, 2016 6:14 pm

LUA Console history question

Post 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.
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: LUA Console history question

Post 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.
Post Reply