From d4bff01d23a09748862c847d8174a2ac9677c94d Mon Sep 17 00:00:00 2001 From: Adam Johnston Date: Sat, 6 Jan 2024 16:04:10 -0800 Subject: [PATCH] Add c# script name note to scripting_first_script.rst --- getting_started/step_by_step/scripting_first_script.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/getting_started/step_by_step/scripting_first_script.rst b/getting_started/step_by_step/scripting_first_script.rst index a55ee2bf2e9..fb9b2f0fee0 100644 --- a/getting_started/step_by_step/scripting_first_script.rst +++ b/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 +.. 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: