Narration System
Last updated
Last updated
This system is not a complete dialogue solution where you can talk to NPCs etc., but a system that allows you to display subtitles for dialogue at certain moments.
Right-click on any project folder and select Create -> UHFPS -> Dialogue -> Dialogue Asset.
To add a new dialogue, click the Add Dialogue button and select the Dialogue 0.
Assign a Dialogue Audio, this can be any audio that contains speech and for which you want to create subtitles.
You can select the type of subtitles the dialogue contains. You can select Single or Multiple.
To add a new subtitle, click the +Subtitle button.
You can also add breakpoints to hide the subtitle until the next subtitle appears. Click the +Break button to add a new breakpoint.
You can move the subtitle by dragging the vertical white line to where you want the subtitle to appear.
To select the subtitle click on the button below the vertical line.
If you select subtitle, you can define subtitle settings such as who is speaking, the color of the narrator or the subtitle text.
To trigger a dialogue, create a new trigger object by enabling the Is Trigger option in the collider and add a Dialogue Trigger component to it.
To use the binder, add a Dialogue Binder component to your object.
To use binder events, you can create a new script that will have methods with the parameters specified in the event.
Here are the methods used to display the speech bubble dialogue:
Then you can register dialogue binder events on these methods
The Binder Name can be specified in the Dialogue Trigger component.