Skip to content

Conversation

gabrieldechichi
Copy link

This is a small fix for a bug that happens when setting ExceptionProperty inside TwoWayPropertyBinding. It's currently using option.ToString(), which returns the default C# ToString() method for this class. The correct implementation should be option.Property.ToString()

Repro steps:
1 - Go to the validation example of Unity-Weld-Examples (inside 5_Validation).
2 - Go to the TwoWayPropertyBinding component inside Canvas/InputField
3 - Set ExceptionProperty value to None.
4 - Try set ExceptionProperty to ValidationExample.ValidationViewModel.isValid
5 - Note that the it sets the value to a weird value UnityWeld-Editor.BaseBidningEditor+OptionInfo. It will also throw an exception if you hit play.

…tead of OptionInfo.Property.ToString() into ExceptionProperty
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 this pull request may close these issues.

1 participant