luigi
New Member
Posts: 24
|
Post by luigi on Mar 21, 2023 7:31:53 GMT
Hello, I'm having this problem: there is MainCamera GameObject (with PC2D and ProCamera2DZoomToFitTargets) it has one child UICamera GameObject (with Unity's Camera component) with two children with canvases to display UI elements near the left and right edges of the screen. It works fine as long as MainCamera has the normal Zoom, but when ProCamera2DZoomToFitTargets zooms the canvases just stay off the screen. Is there something I can do with PC2D to make them stay in the correct place or it's to me to code something to make them follow the zoom? Thank you
|
|
|
Post by Luís Pedro Fonseca on Mar 21, 2023 10:07:35 GMT
Hi Luigi. The UICamera is setup as a screen space camera? Why do you nest them inside the MainCamera? Either way, I don't think ProCamera2D should be affecting your UI cameras (assuming they're screen space). Please share more about your setup so I can help you.
|
|
luigi
New Member
Posts: 24
|
Post by luigi on Mar 21, 2023 10:48:24 GMT
You are abs right, it was not about PC2D component, it was about the screen space... Now it's fine thank you
|
|