Hi everyone,
I am really excited about new UI and I am trying lots of things.
Now, I am trying to do seamless transition between “scenes”. A “scene” is transitioned to, by moving camera around. On nearly every my “scene”, there is UI Canvas. These must be in world space render mode (I want them to stay in “scene” after camera moves elsewhere).
I am now using orthographic camera for my 2D game and setting orthographic size according resolution and ratio. Problem is, that I don’t know how to scale down canvases to the size of camera. One solution is, that I will dynamically change canvas to “screen space camera”, read scaled values, store them, set canvas back to “world space” and apply stored values. Problem is, that I don’t know how to access these values.
So the question is: How can I access calculated values inside RectTransform component?
Is there any other way of doing this?
Try adding Reference resolution in your Canvas. Set you reference resolution and put your Canvas objects where you want. Go to Game and check multiple resolutions.
– Zamanis