浏览代码

Merge pull request #9291 from austin226/patch-1

Fix typo in 2D transform tutorial

(cherry picked from commit a80b88d8c7a7b428993b8c6135e8985b9bfff04d)
Matthew 1 年之前
父节点
当前提交
3c4f0257dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/2d/2d_transforms.rst

+ 1 - 1
tutorials/2d/2d_transforms.rst

@@ -98,7 +98,7 @@ the following order:
 
 
  .. code-tab:: csharp
  .. 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
 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
 recommended approach is to simply work in Canvas coordinates