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
Currently there doesn't seem like a way that i can find to easily invoke an action if a dictionary has been modified in any way. I could use observeable dictionaries perhaps, but that doesn't have a property editor yet and it doesn't use Actions. SerializedObject.OnPropertyChanged() doesn't seem to work well enough with dictionaries, only really works when a key is added.
How would you like it to work?
Don't know exactly how it would be setup in code but in my class constructor i could be able to set the specified action to be called?
What have you tried?
I have tried utilizing so.OnPropertyChanged() to detect changes to a dictionary property .
But it only works when i add a key to said dictionary. Removing or changing a key or a key value do not seem to trigger so.OnPropertyChanged().
2024-11-07.06-44-52.mp4
Additional context
No response
The text was updated successfully, but these errors were encountered:
What can't you do?
Currently there doesn't seem like a way that i can find to easily invoke an action if a dictionary has been modified in any way. I could use observeable dictionaries perhaps, but that doesn't have a property editor yet and it doesn't use Actions. SerializedObject.OnPropertyChanged() doesn't seem to work well enough with dictionaries, only really works when a key is added.
How would you like it to work?
Don't know exactly how it would be setup in code but in my class constructor i could be able to set the specified action to be called?
What have you tried?
I have tried utilizing so.OnPropertyChanged() to detect changes to a dictionary property .
But it only works when i add a key to said dictionary. Removing or changing a key or a key value do not seem to trigger so.OnPropertyChanged().
2024-11-07.06-44-52.mp4
Additional context
No response
The text was updated successfully, but these errors were encountered: