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

Changing value of Variables in Inspector no longer Raises its event. #141

Open
Monsoonexe opened this issue Feb 7, 2021 · 0 comments
Open

Comments

@Monsoonexe
Copy link

Monsoonexe commented Feb 7, 2021

According to the Tutorial section of this repo (and past versions), a developer is able to cause Variable events to raise by changing the value in the Inspector, such as in this screenshot taken of the tutorial on this page.

However, this is no longer the case. The "raise event when value has changed" code has been removed from the BaseVariableEditor class.

Steps to reproduce:
Create any kind of Variable, (like IntVariable)
Hook its event up to something (like a GameEventListener).
Change the Value in Inspector.
notice that nothing happens.

image

Monsoonexe added a commit to Monsoonexe/ScriptableObject-Architecture that referenced this issue Feb 7, 2021
fixes DanielEverland#140
if(IsClampable) -> if(_isClamped.boolValue)

fixes DanielEverland#141
now invokes Raise event when value changed in Inspector

Adds a "Raise" button to invoke event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant