소스 검색

Merge pull request #8732 from a-johnston/your_first_cs_script

Add c# script name note to scripting_first_script.rst
Matthew 1 년 전
부모
커밋
e57e1b40ae
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      getting_started/step_by_step/scripting_first_script.rst

+ 5 - 0
getting_started/step_by_step/scripting_first_script.rst

@@ -85,6 +85,11 @@ other options set to their default values and click the Create button to create
 
 
 .. image:: img/scripting_first_script_attach_node_script.webp
 .. image:: img/scripting_first_script_attach_node_script.webp
 
 
+.. note::
+
+    C# script names need to match their class name. In this case, you should name the
+    file ``MySprite2D.cs``.
+
 The Script workspace should appear with your new ``sprite_2d.gd`` file open and
 The Script workspace should appear with your new ``sprite_2d.gd`` file open and
 the following line of code:
 the following line of code: