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

Button.cs ButtonState is incorrect #1887

Closed
jonboris opened this issue Mar 28, 2018 · 3 comments
Closed

Button.cs ButtonState is incorrect #1887

jonboris opened this issue Mar 28, 2018 · 3 comments
Assignees

Comments

@jonboris
Copy link

Overview

This is HoloLens-only issue.
Button.cs has separate states to signify when the button has been focussed and unfocussed with the user's hand(s) raised and ready or lowered. However, these states are unpredictable and quickly fall out of sync with the user's true hand state.

Expected Behavior

  1. Hand down, not looking at button, ButtonState = Observation
  2. Hand down, looking at button, ButtonState = ObservationTargeted
  3. Hand ready, looking at button, ButtonState = Targeted
  4. Hand down, looking at button, ButtonState = ObservationTargeted
  5. Hand down, not looking at button, ButtonState = Observation

Actual Behavior

  1. Hand down, not looking at button, ButtonState = Observation
  2. Hand down, looking at button, ButtonState = ObservationTargeted
  3. Hand ready, looking at button, ButtonState = Targeted
  4. Hand down, looking at button, ButtonState = Targeted
  5. Hand down, not looking at button, ButtonState = Interactive

From here it is not possible to get back to Observation or ObservationTargeted states.

Steps to reproduce

  1. Open an empty scene and from the MRTK menu do 'apply mixed reality project settings' and 'apply mixed reality scene settings'
  2. Create a cube in the scene and drag on the Button.cs script from MRTK
  3. Hit run and go through the expected behaviour steps outlined above, observing the 'button state' property on the button component.

Unity Editor Version

Unity 2017.3.1p3

Mixed Reality Toolkit Release Version

2017.2.1.2

@david-c-kline
Copy link

Confirmed this behavior in the may18_dev branch. Looking into a fix

@david-c-kline
Copy link

Just a note that my confirmation was in editor.

@david-c-kline
Copy link

This was released in the 2017.4.0.0 release candidate

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

No branches or pull requests

3 participants