You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Updated tutorial_gdscript_efficiently (markdown)
@@ -248,6 +248,11 @@ var d = {
|
||||
}
|
||||
|
||||
print("Name: ", d.name, " Age: ", d.age ) # used "." based indexing
|
||||
d.name="caroline" #works for assignment
|
||||
|
||||
d.nother="rebecca" #this doesn't work (use syntax below to add a key:value pair)
|
||||
d["mother"]="rebecca" #this works
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -255,4 +260,3 @@ print("Name: ", d.name, " Age: ", d.age ) # used "." based indexing
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user