Page 1 of 1
Tutorials for Lua / C#
Posted: Sun May 14, 2023 7:08 pm
by randomcat
Hi. Brand new. Going through the the PC tutorials and they're good. I'm looking for more in-depth / walk throughs for how to integrated with my C# code. example - trigger a conversation when npc clicked on, and get the NPC name from their data. I'll continue thru the videos and documentation, I figured if anyone knew of anything, would be great
Re: Tutorials for Lua / C#
Posted: Sun May 14, 2023 9:15 pm
by Tony Li
Hi,
Here's the tutorial on connecting your C# with Lua:
Video: How to Connect Your Own Code to Lua
You can also refer to the
Lua section of the manual.
Re: Tutorials for Lua / C#
Posted: Mon May 15, 2023 5:52 am
by randomcat
thanks for the reply Tony, though in the tutorial, and my Unity when I do
create - pixel crushers - Dialogue System - the Customer Lua Function Info (it wasn't there) ??
Re: Tutorials for Lua / C#
Posted: Mon May 15, 2023 8:45 am
by Tony Li
Hi,
Are there any errors or warning the Console window?
Are you right-clicking in the
Project view or selecting menu item
Assets > Create > Pixel Crushers > Dialogue System > Custom Lua Function Info? Either method will create a Custom Lua Function Info asset. Here's an example of right-clicking in the Project view:
- createCustomLuaFunctionInfo.png (169.35 KiB) Viewed 436 times
Re: Tutorials for Lua / C#
Posted: Mon May 15, 2023 6:10 pm
by randomcat
it's available in the right click menu, just not under tools, so I am good! thank you very much!
Re: Tutorials for Lua / C#
Posted: Mon May 15, 2023 8:20 pm
by Tony Li
Glad to help!