I have a menu and subtitle narration.
The problem I'm having is that I'd like only the menu actions to run when the menu is clicked. But, the subtitle narration also advances because of the "skip with mouse clicks" entry.
Is it possible to allow both "Can skip with mouse clicks?" and honor the menu's RectTransform boundary? Or, is there another way to solve this so that the menu clicks just go to the menu?
Thanks in advance!
Comments
Can skip with mouse clicks? is just a convenience - you can still skip speech by invoking the SkipSpeech input, if defined in your Input Manager.
Probably what you want is to just dynamically alter this checkbox - so that it turns off when the Menu in question is turned on, and vice-versa.
To do that, you'll need an API reference to the field. You can do that by right-clicking the field's label, but I'll paste it here too:
AC.KickStarter.speechManager.canSkipWithMouseClicks
Then write a new C# function that contains function to set this value to True/False, e.g:
http://pasteall.org/559754/csharp
Then add it to a new GameObject, and make that GameObject a prefab. You can then call those functions on the prefab with the Object: Call event Action. Define ActionList when turn on / off assets for your Menu, give them those Actions, and you should be able to change that setting dynamically when the menu turns on/off.