mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
GetViewPortRect().Size -> GetViewportRect().Size (#2338)
* GetViewPortRect().Size -> GetViewport().Size GetViewPortRect() does not seem to excist anymore so I replaced it with GetViewport().Size * GetViewportRect() actually excists but with proper casing
This commit is contained in:
committed by
Max Hilbrunner
parent
7df2db1725
commit
d1b8ba9d6b
@@ -49,7 +49,7 @@ for example:
|
||||
GD.Print("Mouse Motion at: ", eventMouseMotion.Position);
|
||||
|
||||
// Print the size of the viewport
|
||||
GD.Print("Viewport Resolution is: ", GetViewPortRect().Size);
|
||||
GD.Print("Viewport Resolution is: ", GetViewportRect().Size);
|
||||
}
|
||||
|
||||
Alternatively it's possible to ask the viewport for the mouse position:
|
||||
|
||||
Reference in New Issue
Block a user