Barks displayed under scene objects
-
- Posts: 3
- Joined: Sat Jan 09, 2021 11:50 am
Barks displayed under scene objects
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!
Re: Barks displayed under scene objects
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.
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.
-
- Posts: 3
- Joined: Sat Jan 09, 2021 11:50 am
Re: Barks displayed under scene objects
It works! Much appreciated! One more question tho - will it work with Unity HDRP?
Re: Barks displayed under scene objects
Yes, the Dialogue System works with all rendering pipelines.
-
- Posts: 3
- Joined: Sat Jan 09, 2021 11:50 am
Re: Barks displayed under scene objects
Thanks a lot! Dialogue system is a beast!
Re: Barks displayed under scene objects
Glad to help!
-
- Posts: 28
- Joined: Sun May 28, 2023 8:30 pm
Re: Barks displayed under scene objects
Can you direct me to the Bark UI? I can't find it to adjust its layer.
Re: Barks displayed under scene objects
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.
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.
-
- Posts: 28
- Joined: Sun May 28, 2023 8:30 pm
Re: Barks displayed under scene objects
Thank you, Tony.
Re: Barks displayed under scene objects
Glad to help!