MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Visual cues don't match interaction when using layer masks

Open fast-slow-still opened this issue 7 years ago • 2 comments

Overview

Layer masks provide an efficient and convenient way to mass toggle interactability at runtime (and in editor). However, disabling interactiveness via layer masks does not change the visual interaction cues.

For example, if a pressable button is made non-interactive by setting its layer mask to "Ignore Raycast" (or any layer currently disabled via profile), then pressing the button has no effect as expected. But the fingertip light and the homing ring still appear when the fingertip gets in proximity, and the light still gets brighter and the ring smaller as the fingertip approaches the button, even though the finger will have no effect on the button.

That suggests to the user that they can interact with the button when they can't.

To reproduce

Steps to reproduce the behavior:

An easy repro is:

  1. open MRTK project
  2. open HandInteractionExamples scene
  3. run scene in editor
  4. using simulated hands (or whatever method you're most comfortable with), press one of the Press Interaction buttons.
  5. note great visualizations as finger approaches
  6. change the layer mask on SceneContent/PressExamples to Ignore Raycast
  7. Say yes to apply to children
  8. Press button again.
  9. note same visualizations of interaction, but there is no interaction

Expected behavior

When the button isn't interactable, its interaction visualizations should not show up.

Note that when layer mask for SphereOverlap is fixed, this issue might show up for bounding boxes as well.

fast-slow-still avatar Jun 06 '19 08:06 fast-slow-still

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Apr 18 '20 05:04 stale[bot]

This issue has been closed by an automated process because it is stale. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar May 18 '20 05:05 stale[bot]