Page 1 of 1

Barks displayed under scene objects

Posted: Sat Jan 09, 2021 11:58 am
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 1260 times

Re: Barks displayed under scene objects

Posted: Sat Jan 09, 2021 12:47 pm
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.

Re: Barks displayed under scene objects

Posted: Sat Jan 09, 2021 1:29 pm
by PatulianGray
It works! Much appreciated! One more question tho - will it work with Unity HDRP?

Re: Barks displayed under scene objects

Posted: Sat Jan 09, 2021 2:00 pm
by Tony Li
Yes, the Dialogue System works with all rendering pipelines.

Re: Barks displayed under scene objects

Posted: Sun Jan 10, 2021 10:01 am
by PatulianGray
Thanks a lot! Dialogue system is a beast!

Re: Barks displayed under scene objects

Posted: Sun Jan 10, 2021 10:11 am
by Tony Li
Glad to help!

Re: Barks displayed under scene objects

Posted: Sun May 28, 2023 8:31 pm
by Eldritch_Horror
Can you direct me to the Bark UI? I can't find it to adjust its layer.

Re: Barks displayed under scene objects

Posted: Sun May 28, 2023 10:08 pm
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.

Re: Barks displayed under scene objects

Posted: Sun May 28, 2023 11:18 pm
by Eldritch_Horror
Thank you, Tony.

Re: Barks displayed under scene objects

Posted: Mon May 29, 2023 7:57 am
by Tony Li
Glad to help!