You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When using _get, _set, and _get_property_list to expose a property dynamically, I have found that it functions inconsistently.
Works
Test scene 3) A node exposes its own dynamic property and then prints said property using self.<property>.
Test scene 2) A node has an exposed Resource property with a script assigned in the Inspector. The Resource script then exposes a dynamic property. The Node prints the resource variable's dynamic property.
Doesn't work
Test scene 1) The exact same code from scene 3 is used (without the print statement), but it's placed on a child node. The parent node then attempts to get the child and print the dynamic property.
I am unable to identify the reason that this occurs, so I've concluded that it is likely a bug of some kind.
Note that using .set(<property>, <value>) and .get(<property>) still works, but not using dot notation.
… with dot operator.
Dynamic properties were always accessable with '.' dot operator. Just fixed false error when property name were not checked for presence in '_get_property_list' godotengine#24534
Godot version:
Godot 3.1 alpha: a92e885
Issue description:
When using
_get
,_set
, and_get_property_list
to expose a property dynamically, I have found that it functions inconsistently.self.<property>
.I am unable to identify the reason that this occurs, so I've concluded that it is likely a bug of some kind.
Note that using
.set(<property>, <value>)
and.get(<property>)
still works, but not using dot notation.Minimal reproduction project:
test_dynamic_properties.zip
The text was updated successfully, but these errors were encountered: