Arbitrary buttons in Fungus

I’ve made another little thing in Fungus. This time, it allows you to use any UI Button in place of the Menu Dialogs.

So you can set up UI buttons in your scene, and then in the Fungus Block, you can make it go to another block when clicked, same as the Menu Dialogs do.

It relies on extending the MenuDialog class into ButtonMenuDialog. So you have to add a MenuDialog to your scene and then attach the ButtonMenuDialog script to it instead.

I’ve made a small example that uses it for North East South and West buttons, to allow you to navigate a maze, and for a couple interactable things in the maze. If you drop these files into a Unity project that also has Fungus included, it should show how it works.

This entry was posted in uncategorized and tagged , . Bookmark the permalink.

Comments are closed.