瀏覽代碼

Fixed "GetNode" inconsistency

See #4794

(cherry picked from commit 4cfe07b6961c22071b1a32c259decec13dadec9c)
BlueStag 4 年之前
父節點
當前提交
0b320a198f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/math/vector_math.rst

+ 1 - 1
tutorials/math/vector_math.rst

@@ -70,7 +70,7 @@ corner of the screen, so to place a 2D node named ``Node2D`` 400 pixels to the r
 
  .. code-tab:: csharp
 
-    var node2D = (Node2D) GetNode("Node2D");
+    var node2D = GetNode<Node2D>("Node2D");
     node2D.Position = new Vector2(400, 300);
 
 Godot supports both :ref:`Vector2 <class_Vector2>` and