Browse Source

Corrects case on class name, adds note about it.

PJB3005 7 years ago
parent
commit
765c03a492
1 changed files with 3 additions and 1 deletions
  1. 3 1
      learning/step_by_step/scripting.rst

+ 3 - 1
learning/step_by_step/scripting.rst

@@ -262,7 +262,9 @@ The final script should look basically like this:
 
 
     using Godot;
     using Godot;
 
 
-    public class SayHello : Panel
+    // IMPORTANT: the name of the class MUST match the filename exactly.
+    // this is case sensitive!
+    public class sayhello : Panel
     {
     {
         public void _OnButtonPressed()
         public void _OnButtonPressed()
         {
         {