- Home /
Question by
unity_oEVKDotJO50MrQ · Mar 28, 2019 at 02:21 PM ·
uicanvasscale
Keep the size of a gameobject on HUD changing Z depth
I have a Camera placed on Position(0,0,0) and Rotation(0,0,0).I want to instantiate a canvas (dynamically) in the FOV of the camera and I want to keep the aspect ratio of the object even if the Z index is changing.
To be more clear I want the canvas to cover the same area at Position(10,5,0) and, for example at Position (10,5,50).
How can I achieve this goal?
Comment
Your answer
Follow this Question
Related Questions
UI scaling issues 2 Answers
Scaling a menu bar 1 Answer
Unity UI World Canvas Scale Reason 0 Answers
Can't get an actual canvas size 1 Answer
Scaling Canvas (or panel) and then trying to move a gameobject (child) attached to it 1 Answer