mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 14:32:42 +00:00
Updated tutorial_canvas_transforms (markdown)
parent
524e8dda41
commit
1ef79cd6e6
|
@ -16,7 +16,9 @@ Viewports also have a Global Canvas transform (also a [Matrix32](class_matrix32)
|
|||
|
||||
### Stretch Transform
|
||||
|
||||
Finally, viewports have a _Stretch Transform_, which is used when resizing or stretching the screen. This transform is used internally by the [stretch modes](tutorial_multires), but can also be requested to the viewport.
|
||||
Finally, viewports have a _Stretch Transform_, which is used when resizing or stretching the screen. This transform is used internally by the [stretch modes](tutorial_multires), but can also be requested to the viewport.
|
||||
|
||||
Input events received in the [Node._input_event(ev)](class_node#_input_event) callback are multiplied by this transform, but lack the ones above. To convert InputEvent coordinates to local CanvasItem coordinates, the [CanvasItem.make_input_local(ev)](class_canvasitem#make_input_local) function was added for convenience.
|
||||
|
||||
### Transform Order
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user