Barks displayed under scene objects

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
PatulianGray
Posts: 3
Joined: Sat Jan 09, 2021 11:50 am

Barks displayed under scene objects

Post by PatulianGray »

Been interesterd in dialogue sysytem for quite awile, so i download a trial version. Everything was fine, but i ran into this small issue - bark bubbles been displayed under some meshes. An advise will be much apreciated!
test.png
test.png (294.62 KiB) Viewed 1266 times
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Barks displayed under scene objects

Post by Tony Li »

Hi,

By default, barks use world space canvases, which means they're positioned in world space. If you want barks to appear on top of other things that are closer to the camera:

1. Change your bark UI's Layer to "UI", including children.

2. Inspect your main camera, and remove "UI" from the Culling Mask dropdown. Make a note of the camera's Depth.

3. Add a child camera to your main camera. Set the position and rotation to (0,0,0) so it's in exactly the same place as the main camera. Set the Clear Flags to Depth Only, and Culling Mask to only "UI". Set Depth to a value that's higher than the main camera's Depth.

This will ensure that the bark UI is rendered after the other objects in the scene, so it will appear on top.
PatulianGray
Posts: 3
Joined: Sat Jan 09, 2021 11:50 am

Re: Barks displayed under scene objects

Post by PatulianGray »

It works! Much appreciated! One more question tho - will it work with Unity HDRP?
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Barks displayed under scene objects

Post by Tony Li »

Yes, the Dialogue System works with all rendering pipelines.
PatulianGray
Posts: 3
Joined: Sat Jan 09, 2021 11:50 am

Re: Barks displayed under scene objects

Post by PatulianGray »

Thanks a lot! Dialogue system is a beast!
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Barks displayed under scene objects

Post by Tony Li »

Glad to help!
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Barks displayed under scene objects

Post by Eldritch_Horror »

Can you direct me to the Bark UI? I can't find it to adjust its layer.
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Barks displayed under scene objects

Post by Tony Li »

You can find some bark UI prefabs in the folders Plugins > Pixel Crushers > Dialogue System > Prefabs > Standard UI Prefabs > Templates > Basic and Bubble.

You'll typically assign a bark UI prefab (such as a customize copy of one of the prefabs above) to a Dialogue Actor component on a character's GameObject.
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Re: Barks displayed under scene objects

Post by Eldritch_Horror »

Thank you, Tony.
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Barks displayed under scene objects

Post by Tony Li »

Glad to help!
Post Reply