Skip to content

Commit

Permalink
Merge pull request godotengine#8732 from a-johnston/your_first_cs_script
Browse files Browse the repository at this point in the history
Add c# script name note to scripting_first_script.rst
  • Loading branch information
skyace65 authored Jan 10, 2024
2 parents 8629264 + d4bff01 commit f6d53d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions getting_started/step_by_step/scripting_first_script.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

.. 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 following line of code:

Expand Down

0 comments on commit f6d53d1

Please sign in to comment.