Switch between scenes

Posted: 20 May 2020 14:05
by Gonzo

Hi everybody! :)
This is my first post, im new to naninovel/unity and my english is horrible, so please be patient.

First of all, i want to say thank you to ElRingus, you are amazing, i immediately fell in love with Naninovel, keep the good work!
Well im doing a game combining naninovel and AC, and im trying to create a citymap, like the one in here:

https://naninovel.com/guide/choices.html#choice-button

The thing is i donĀ“t know how to change to another unity scene once you click on the button, so i can enter an AC/Unity scene.
Does anybody know how to do that?

Thank you!


Re: Switch between scenes

Posted: 20 May 2020 17:12
by Elringus

Hey, Glad you found Naninovel useful!

While you can use choice area handler to implement the map, I'd suggest looking into a custom UI instead. This will allow for a more flexible and maintainable solution. You can use Play Script component to react for button (map spot) clicks with script commands; to switch between Unity scenes, use @loadScene command.


Re: Switch between scenes

Posted: 24 May 2020 13:57
by Gonzo

Thank you very much for replying so quickly! I made it work thanks to your instructions : D