Closed tshadle closed 7 years ago
Yeah, I am seeing the same thing. Put in some debug log statements on onFocusEnter and Exit, and they are firing opposite
I checked the code and they really are reversed: https://github.com/Microsoft/HoloToolkit-Unity/blob/63dabf4826332a82ff369569a7f1d7435b9ebb48/Assets/HoloToolkit/Input/Scripts/InputManager.cs#L353-L369
Sorry guys, I think that may have been my fault. I'll fix that right meow.
In InputManager.cs, lines 355 and 364 reverse references to
OnFocusExitEventHandler
andOnFocusEnterEventHadler
. As a resultOnFocusEnter
andOnFocusExit
fire in the wrong order.Also,
OnFocusEnterEventHadler
contains a typo.To test, run
ColorPickerExample
. It's currently broken. Reverse the refs in InputManager.cs to fix.Thanks.