Skip to content

Commit

Permalink
Merge pull request #9291 from austin226/patch-1
Browse files Browse the repository at this point in the history
Fix typo in 2D transform tutorial
  • Loading branch information
skyace65 committed Apr 29, 2024
2 parents cc2fc95 + 10ccdbe commit a80b88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/2d/2d_transforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ the following order:

.. code-tab:: csharp

var screenCord = GetViewport().GetScreenTransform() * GetGlobalTransformWithCanvas() * localPos;
var screenCoord = GetViewport().GetScreenTransform() * GetGlobalTransformWithCanvas() * localPos;

Keep in mind, however, that it is generally not desired to work with screen coordinates. The
recommended approach is to simply work in Canvas coordinates
Expand Down

0 comments on commit a80b88d

Please sign in to comment.