Custom lua function in wizard?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nicmar
Posts: 133
Joined: Wed Aug 21, 2019 2:39 am

Custom lua function in wizard?

Post by nicmar »

I have a custom LuaFunction Interaction("moveToSoup"); and I want to add it to the Lua Wizard dropdown. I followed the steps in the docs (https://www.pixelcrushers.com/dialogue_ ... d_lua.html), but it didn't seem to work. Do I need to register the "Custom Lua Function Info" asset somewhere?

The second image is the command I use when I type it manually.

Also, is there a way to edit it in the Lua Wizard, or is it only editable by text once it's applied?

Thanks!
Skärmavbild 2021-03-02 kl. 08.27.24.png
Skärmavbild 2021-03-02 kl. 08.27.24.png (66.7 KiB) Viewed 198 times
Skärmavbild 2021-03-02 kl. 08.27.30.png
Skärmavbild 2021-03-02 kl. 08.27.30.png (13.95 KiB) Viewed 198 times
Skärmavbild 2021-03-02 kl. 08.27.39.png
Skärmavbild 2021-03-02 kl. 08.27.39.png (80.09 KiB) Viewed 198 times
Working on SpaceChef - A wacky open world space western, featuring a chef with nothing to loose, after he loses everything.. ;) Follow our work on @BlueGooGames.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom lua function in wizard?

Post by Tony Li »

Hi Niclas,

No additional steps should be required. You should normally be able to select your Interaction function in the "Custom" submenu, but I see it doesn't have any submenu choices. Have you tried closing and reopening Unity? Are there any errors or warnings in the Console window?
Post Reply