Add support for _notification, _set, _get, _get_property_list, _property_can_revert, _property_get_revert, and _to_string methods.
This commit is contained in:
@@ -7,10 +7,20 @@ func _ready():
|
||||
|
||||
prints("")
|
||||
|
||||
# To string.
|
||||
prints("To string")
|
||||
prints(" Example --> ", $Example.to_string())
|
||||
prints(" ExampleMin --> ", $Example/ExampleMin.to_string())
|
||||
|
||||
# Call static methods.
|
||||
prints("Static method calls")
|
||||
prints(" static (109)", Example.test_static(9, 100));
|
||||
Example.test_static2();
|
||||
|
||||
# Property list.
|
||||
prints("Property list")
|
||||
$Example.property_from_list = Vector3(100, 200, 300)
|
||||
prints(" property value ", $Example.property_from_list)
|
||||
|
||||
# Call methods.
|
||||
prints("Instance method calls")
|
||||
|
||||
@@ -7,6 +7,8 @@ script = ExtResource( "1_c326s" )
|
||||
|
||||
[node name="Example" type="Example" parent="."]
|
||||
|
||||
[node name="ExampleMin" type="ExampleMin" parent="Example"]
|
||||
|
||||
[node name="Label" type="Label" parent="Example"]
|
||||
offset_left = 194.0
|
||||
offset_top = -2.0
|
||||
|
||||
Reference in New Issue
Block a user