Page 1 of 1

Custom lua function in wizard?

Posted: Tue Mar 02, 2021 2:30 am
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 201 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 201 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 201 times

Re: Custom lua function in wizard?

Posted: Tue Mar 02, 2021 8:26 am
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?