Best way to do Text only, no box
-
- Posts: 55
- Joined: Fri Apr 16, 2021 4:32 pm
Best way to do Text only, no box
I am looking around at the templates/demos and I am not sure how to proceed on this. I am wanting to have a floating text across the bottom of the screen, with no box, just the text. Should I just grab a template, and remove the box, etc.? If so, which template should I use, or is there a better option for me to do this?
Re: Best way to do Text only, no box
Hi,
Grabbing a template is probably the easiest way, although you can make a UI from scratch if you prefer.
Try the Basic or Letterbox UI. In both, the NPC Subtitle Panel is anchored to the top of the screen. You can change its RectTransform > Pivot > Y to 0, anchor to bottom, and set Pos > Y to 0 to anchor it to the bottom.
Grabbing a template is probably the easiest way, although you can make a UI from scratch if you prefer.
Try the Basic or Letterbox UI. In both, the NPC Subtitle Panel is anchored to the top of the screen. You can change its RectTransform > Pivot > Y to 0, anchor to bottom, and set Pos > Y to 0 to anchor it to the bottom.
-
- Posts: 55
- Joined: Fri Apr 16, 2021 4:32 pm
Re: Best way to do Text only, no box
Thanks! I got the Basic Prefab and I am trying to use it, but I think there is another piece to this that I am not well versed on. I am trying to use this floating, no-text box for a single entity in my cutscene, the rest are just using the standard speech bubble.
I got the Basic Prefab from the plugin and nested it under the CutsceneEntity Object I want to use it, and also assigned the NPC Subtitle Panel as the Custom Subtitle Panel in the Dialog Actor script, but it is not coming up on the cutscene when their dialog is reached:
I am assuming I need to do something more than just assign a custom subtitle panel for the entity Object that I want to have the "floating text" But I am not sure how to go about it. Any ideas?
I got the Basic Prefab from the plugin and nested it under the CutsceneEntity Object I want to use it, and also assigned the NPC Subtitle Panel as the Custom Subtitle Panel in the Dialog Actor script, but it is not coming up on the cutscene when their dialog is reached:
I am assuming I need to do something more than just assign a custom subtitle panel for the entity Object that I want to have the "floating text" But I am not sure how to go about it. Any ideas?
Re: Best way to do Text only, no box
Hi,
I originally assumed you meant for this text-only subtitle panel to appear in screen space, like subtitles in a movie. Is that the case?
If so, then there's no need to assign a custom subtitle panel to the character's Dialogue Actor component. Leave it set to Default.
Assign your customized dialogue UI (with the NPC Subtitle Panel moved to the bottom and the background box image removed) to the Dialogue Manager's Display Settings > Dialogue UI field. This will be the default panel used for the actor.
I originally assumed you meant for this text-only subtitle panel to appear in screen space, like subtitles in a movie. Is that the case?
If so, then there's no need to assign a custom subtitle panel to the character's Dialogue Actor component. Leave it set to Default.
Assign your customized dialogue UI (with the NPC Subtitle Panel moved to the bottom and the background box image removed) to the Dialogue Manager's Display Settings > Dialogue UI field. This will be the default panel used for the actor.