mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Updated tutorial_gdscript_efficiently (markdown)
parent
7781274852
commit
8d5961f958
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user