Speech bubbles rendering behind objects in scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ferakiii
Posts: 13
Joined: Tue Nov 19, 2019 12:25 am

Speech bubbles rendering behind objects in scene

Post by ferakiii »

First off, thanks for an awesomely supported system, so much great documentation and helpful forum posts.

I followed the instructions here: How To: Overhead Conversation Bubble Text

But for some reason they render behind some objects in the scene. I'm not super crash hot on camera's in Unity, and but have been experimenting with Cinemachine so it's driving the main camera. Is there some setting I need to place on the camera or on the speech bubbles themselves to have them always render in front?
Attachments
Screen Shot 2019-11-19 at 10.27.36 PM.png
Screen Shot 2019-11-19 at 10.27.36 PM.png (90.94 KiB) Viewed 282 times
ferakiii
Posts: 13
Joined: Tue Nov 19, 2019 12:25 am

Re: Speech bubbles rendering behind objects in scene

Post by ferakiii »

It's always the way, spend an hour reading through docs/posts, finally give up and make a post yourself, then read 4 more posts and come across the answer (I think!).

I followed this post: How to keep Bark above NPC in TDE using TextMesh Pro and setup a child camera is the way you suggested. It seems like it does some weird sizing stuff (maybe because of cinemachine control fields of view etc on the main camera), but it's good enough for now.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speech bubbles rendering behind objects in scene

Post by Tony Li »

Hi,

When you get around to fine-tuning it, you'll want to add a small script that copies the main camera's settings to the UI camera. That should get them aligned properly.
ferakiii
Posts: 13
Joined: Tue Nov 19, 2019 12:25 am

Re: Speech bubbles rendering behind objects in scene

Post by ferakiii »

Cheers Tony, that's my plan!
Post Reply