Explorar o código

Corrects case on class name, adds note about it.

PJB3005 %!s(int64=7) %!d(string=hai) anos
pai
achega
765c03a492
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;
 
-    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()
         {