Skip to content

Commit f6d53d1

Browse files
authored
Merge pull request godotengine#8732 from a-johnston/your_first_cs_script
Add c# script name note to scripting_first_script.rst
2 parents 8629264 + d4bff01 commit f6d53d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

getting_started/step_by_step/scripting_first_script.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ other options set to their default values and click the Create button to create
8585

8686
.. image:: img/scripting_first_script_attach_node_script.webp
8787

88+
.. note::
89+
90+
C# script names need to match their class name. In this case, you should name the
91+
file ``MySprite2D.cs``.
92+
8893
The Script workspace should appear with your new ``sprite_2d.gd`` file open and
8994
the following line of code:
9095

0 commit comments

Comments
 (0)