Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | BorisJohnson |
I need to find the center of the screen without referring to the camera object. get_viewport_rect() does not take scaling of camera.
something like this? (both are vector2)
OS.get_screen_size()/2
OS.get_window_size()/2
AiTechEye | 2020-01-31 12:49
I have a camera in the scene that moves, but I don’t have access to it. Your method doesn’t work for me.
BorisJohnson | 2020-01-31 13:04
How can you not have access to the camera? It’s in your scene tree in the location you put it.
kidscancode | 2020-01-31 15:34
They mean the window
Merlin1846 | 2020-01-31 23:55