Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the ability invoke an action if a dictionary is updated in any way. #6832

Open
QuackCola opened this issue Nov 7, 2024 · 0 comments
Open

Comments

@QuackCola
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant