Lua

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mgmhunt
Posts: 3
Joined: Tue Oct 14, 2014 1:20 am

Lua

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

Lua

Post 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.
mgmhunt
Posts: 3
Joined: Tue Oct 14, 2014 1:20 am

Lua

Post 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 :-)
mgmhunt
Posts: 3
Joined: Tue Oct 14, 2014 1:20 am

Lua

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

Lua

Post by Tony Li »

Okay, I added it to my "to-do" list.
Post Reply