0
Answered

Hiding UI elements in Dialogue (mobile)

The Scrag Mag 1 month ago in Dialogue updated by Marti (Lead Developer) 1 month ago 1

I've added a few ui elements (jump button, radar/compass) and have the included mobile joystick. When I enter a dialogue with that module i have to add actions to hide them and then show at the end. Is there a way I can set it once or do i have to add the actions to every instance of a dialogue?

Thanks again for the great tools. I'm miles ahead in my game development than i would have been with out GC

Unity version:
2018.4.12
Game Creator version:
latest
GOOD, I'M SATISFIED

cheers, i'll do that then. Thanks for the reply

Satisfaction mark by The Scrag Mag 1 month ago
Answered

Hi The Scrag Mag. You'll probably need to deactivate them before starting a Dialogue and activate them when ending it.

However, there's a few things you can do to streamline this process. For example, you can create an Actions object that deactivates all these elements and create a prefab out of this Actions object.

Then, before starting a Dialogue with the Dialogue Action, you can use the "Call Actions" Action and drop in the prefab. This allows you to easily modify the prefab in case you want to add another element to disable, without having to go over all the Dialogues.

Hope this helps. Cheers!