Browse Source

Fix extends statement

When extending from a filepath, you need to use a string
Nathan Merrill 5 years ago
parent
commit
6d46050ecb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -987,7 +987,7 @@ path. For example, if you name a script file ``character.gd``::
 
    # Inherit from Character.gd
 
-   extends res://path/to/character.gd
+   extends "res://path/to/character.gd"
 
    # Load character.gd and create a new node instance from it