Is there any way I can get the real size of a Control node on screen?
My stretch mode is 2d/expand. I've tried Node.get_global_rect().size
and Control.size
, but both of their results didn't change although I resized the window. The results are relative to the window size set in project configuration instead of their real size on screen.
I need the real size of a node on screen since my shaders depend on the screen resolution.