Disable or hide dialogue canvas & pause interactions during a cutscene
Posted: Fri Feb 17, 2023 5:53 am
Hello!
I have a situation where I need to hide the dialogue canvas & disable interactions (as well as the text flow to the dialog text box) during a five second long cutscene in the middle of a conversation. Currenty I've made it so that a Playmaker FSM is fired which plays out the short cutscene while disabling the canvas component of the dialog canvas, and after five seconds, when the cutscene is over, enables the component. The problem I have is that the text keeps flowing (I use the typewriter effect so the sound is also playing) and the player can advance the dialog when the panel is not showing. How should I go about fixing this? I'd like the conversation to pause, hide the canvas, wait for five seconds, show the canvas and then continue the dialogue. It seems like a trivial thing but I just can't wrap my head around on how to solve this.
I have a situation where I need to hide the dialogue canvas & disable interactions (as well as the text flow to the dialog text box) during a five second long cutscene in the middle of a conversation. Currenty I've made it so that a Playmaker FSM is fired which plays out the short cutscene while disabling the canvas component of the dialog canvas, and after five seconds, when the cutscene is over, enables the component. The problem I have is that the text keeps flowing (I use the typewriter effect so the sound is also playing) and the player can advance the dialog when the panel is not showing. How should I go about fixing this? I'd like the conversation to pause, hide the canvas, wait for five seconds, show the canvas and then continue the dialogue. It seems like a trivial thing but I just can't wrap my head around on how to solve this.