Is there a quicker way of killing the subtitles menu (it uses the Unity UI)?
I'm working on an FMV game and there are literally thousands of video clips, each one using subtitles created via Actionlists (Yep, that was fun) that run when I call them to run alongside the video that's playing.
Rather than having to add an additional Actionlist:Kill at the end of each video clip in case it's skipped, is there quick way that kills the subtitle menu instantly when the 'Skip' key is pressed (The space bar in this case)?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can have a custom script detect your Skip input and then run the Dialog component's KillDialog function, i.e.:
Thanks Chris. Where would I attach this?
It'd go in a custom script that listens out for your Skip key.
How are you reading input in your project?
I'm using the Active Input Editor that triggers an Actionlist when the Skip key is pressed.
Place the line above in a public function inside a new C# file, then attach that script to an Empty GameObject, make it a prefab and remove from the scene.
You can then use the Object: Call event Action to trigger the function inside the prefab.
Perfect, I'll give that a go