Merge pull request #67458 from Sauermann/fix-expose-viewport-get-screen-transform
Expose Viewport::get_screen_transform to GDScript
This commit is contained in:
commit
6fb3a14263
2 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,12 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_screen_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns the transform from the Viewport's coordinates to the screen coordinates of the containing window manager window.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_texture" qualifiers="const">
|
||||
<return type="ViewportTexture" />
|
||||
<description>
|
||||
|
|
|
@ -3729,6 +3729,7 @@ void Viewport::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_global_canvas_transform", "xform"), &Viewport::set_global_canvas_transform);
|
||||
ClassDB::bind_method(D_METHOD("get_global_canvas_transform"), &Viewport::get_global_canvas_transform);
|
||||
ClassDB::bind_method(D_METHOD("get_final_transform"), &Viewport::get_final_transform);
|
||||
ClassDB::bind_method(D_METHOD("get_screen_transform"), &Viewport::get_screen_transform);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_visible_rect"), &Viewport::get_visible_rect);
|
||||
ClassDB::bind_method(D_METHOD("set_transparent_background", "enable"), &Viewport::set_transparent_background);
|
||||
|
|
Loading…
Reference in a new issue