Dialog System URP Screen Space Canvas Issue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
RetroVertigo
Posts: 55
Joined: Fri Apr 16, 2021 4:32 pm

Dialog System URP Screen Space Canvas Issue

Post by RetroVertigo »

OK, now I am running into another issue with the URP project. It seems like the Screen Space overlay canvas is not working as it does in Built in render pipeline project, but that doesn't really make much sense.

I have a panel that is in screen space overlay, and using the UI follow script. Here it is working in built in render pipeline:
Image

Here is the same scene, and the bubble is being created, etc. but it is way off in a different place in the scene, so it doesn't show up in Game view:
Image

The Rect Transforms are the only difference I can see, but I am not sure why they would be pulling in different numbers just because of a URP change. Any ideas on what else I could look at?

I've gone through and checked all my objects and settings on each project and they are matching. Is there something I should double check?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog System URP Screen Space Canvas Issue

Post by Tony Li »

In your URP project, is your camera tagged MainCamera?

Other than that, I don't know.
RetroVertigo
Posts: 55
Joined: Fri Apr 16, 2021 4:32 pm

Re: Dialog System URP Screen Space Canvas Issue

Post by RetroVertigo »

OK, I did some more comparing line by line with the UI follow code, and I found that the Camera.Current is Null in the URP project. Trying to 1) find out why that is, and 2) see if I can assign it my UI camera. I have two cameras, one is UI only, and is used for the textboxes/speech bubbles, so I think that is why it is messing up in the URP project:

Image
RetroVertigo
Posts: 55
Joined: Fri Apr 16, 2021 4:32 pm

Re: Dialog System URP Screen Space Canvas Issue

Post by RetroVertigo »

Alright, found out my issue. I had multiple different cameras in this scene, and I disabled them so my main camera was the only one in use, and the UI smooth follow group worked.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialog System URP Screen Space Canvas Issue

Post by Tony Li »

Great! Glad you found the issue.

It's OK to have multiple cameras as long as only one active camera is tagged MainCamera.
Post Reply