Add support for property groups

This commit is contained in:
Bastiaan Olij
2021-09-15 13:56:20 +10:00
parent 02802b1d0e
commit e839199848
8 changed files with 39 additions and 11 deletions

View File

@@ -13,9 +13,9 @@ func _ready():
prints("vararg args", $Example.varargs_func("some", "arguments", "to", "test"))
# Use properties.
prints("custom postion is", $Example.custom_position)
$Example.custom_position = Vector2(50, 50)
prints("custom postion now is", $Example.custom_position)
prints("custom position is", $Example.group_subgroup_custom_position)
$Example.group_subgroup_custom_position = Vector2(50, 50)
prints("custom position now is", $Example.group_subgroup_custom_position)
# Get constants
prints("FIRST", $Example.FIRST)