Page 1 of 1

Lua

Posted: Mon Oct 13, 2014 9:25 pm
by mgmhunt
Hi there



I note http://www.pixelcrushers.com/dialogue_s ... nsole.html says "It doesn't display the output of print statements." Any chance of this being implemented? either in the console or to the Unity debug console?



Also how would you go about loading a Lua script via the console ie what command could you use to load and run a script? total newbie on Lua.



Thanks

Lua

Posted: Tue Oct 14, 2014 3:10 am
by Tony Li
3194 wrote: Hi there I note http://www.pixelcrushers.com/dialogue_s ... nsole.html says “It doesn’t display the output of print statements.” Any chance of this being implemented? either in the console or to the Unity debug console?


That's a great idea. I'll add it to the next release.



3194 wrote: Also how would you go about loading a Lua script via the console ie what command could you use to load and run a script? total newbie on Lua. Thanks


I'll also add that to the next release!



It's not quite the same, but do keep in mind that you can also register your own C# functions with Lua using the Lua.RegisterFunction() method.

Lua

Posted: Tue Oct 14, 2014 8:54 am
by mgmhunt
sweet. Yes I've hooked up Lua to some C# functions via the RegisterFunction but was trying to get a Lua environment that was closer to a 'full' environment so I could learn it at the same time as using it, if you get my drift :-)

Lua

Posted: Tue Oct 14, 2014 8:56 am
by mgmhunt
while I'm here... also maybe displaying the recent commands in a scrolling list, rather than hidden? Like other standard consoles which show the history.

Lua

Posted: Tue Oct 14, 2014 9:52 am
by Tony Li
Okay, I added it to my "to-do" list.