[HOWTO] How To: Hide Continue Button Until Typed/End
Posted: Sat Mar 28, 2020 6:48 pm
This article describes two techniques to hide the continue button until the typewriter effect has finished.
First Method:
This method uses the typewriter effect's UnityEvents. Configure the typewriter effect's OnCharacter() event to disable the continue button GameObject and configure OnEnd() to enable the continue button GameObject:
Second Method:
This method uses a sequence that listens for the special sequencer message "Typed" that the typewriter sends when it's done.
To hide the continue button until the {{end}} duration is reached (see Cutscene Sequences Tutorials), use these sequencer commands:
To hide the continue button until the typewriter effect is done, use these sequencer commands:
The 'original' keyword tells SetContinueMode() to restore the original continue button mode. This allows it to remember whether the continue button should be shown or not. If you always want to show the continue button at the end, you can use 'true' instead:
First Method:
This method uses the typewriter effect's UnityEvents. Configure the typewriter effect's OnCharacter() event to disable the continue button GameObject and configure OnEnd() to enable the continue button GameObject:
Second Method:
This method uses a sequence that listens for the special sequencer message "Typed" that the typewriter sends when it's done.
To hide the continue button until the {{end}} duration is reached (see Cutscene Sequences Tutorials), use these sequencer commands:
Code: Select all
SetContinueMode(false);
SetContinueMode(original)@{{end}}
Code: Select all
SetContinueMode(false);
SetContinueMode(original)@Message(Typed)
Code: Select all
SetContinueMode(false);
SetContinueMode(true)@Message(Typed)