Closed imkindaprogrammermyself closed 2 years ago
Subscribing to nested property can be done with: Entity.subscribe_nested_property_change(Entity_name, property_path, func) Entity.subscribe_nested_property_change('BattleLogic', 'state.controlPoints', lambda *arg, **kwargs: print(arg, kwargs)) {'position': [0.0, -0.0001983642578125], 'radius': 151.0, 'innerRadius': 0.0,....
Entity.subscribe_nested_property_change(Entity_name, property_path, func)
Entity.subscribe_nested_property_change('BattleLogic', 'state.controlPoints', lambda *arg, **kwargs: print(arg, kwargs))
{'position': [0.0, -0.0001983642578125], 'radius': 151.0, 'innerRadius': 0.0,....
This will pass the property's value to the function.
@Monstrofil I might be wrong, but I think part of this PR was lost with the 0.11.7 update.
Subscribing to nested property can be done with:
Entity.subscribe_nested_property_change(Entity_name, property_path, func)
Entity.subscribe_nested_property_change('BattleLogic', 'state.controlPoints', lambda *arg, **kwargs: print(arg, kwargs))
{'position': [0.0, -0.0001983642578125], 'radius': 151.0, 'innerRadius': 0.0,....
This will pass the property's value to the function.