Answer the question
In order to leave comments, you need to log in
How to make an object be equal to the length or width of the screen?
I tried to make a 3D object according to the width and length of the screen, while using Screen.width and Screen.height, but it didn’t work, the length and width were either large or small.
That is not the way it should be. I also tried the ScreenToWorldPoint function, but it also did not work.
Answer the question
In order to leave comments, you need to log in
The screen is a rectangle. So you need to place this rectangle in such a way that it wraps around your object.
I do not know the function, but there are two approaches:
1) bring the camera closer to the object, i.e. change its coordinates (just don’t get too close, because there is a minimum clipping distance at which the object will disappear)
2) reduce the viewing angle (zooming) (it’s like changing the lens of a camera)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question