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

NearInteractionGrabbable missing

Open Luckypon opened this issue 5 years ago • 2 comments

Overview

I have multiple interactables gameObjects that I need to disable and enable a few times. When I enable them back, NearInteractionGrabbable is missing.

Expected behavior

NearInteractionGrabbable should be added automatically on CreateRig() in BoundsControls.cs

Actual behavior

I think the problem lies in CreateRig() in BoundsControls.cs. My objects have a boxPadding that is equals to Vector3.zero, so in DetermineTargetBounds() I never reach TargetBounds.EnsureComponent<NearInteractionGrabbable>();

Steps to reproduce

Disable and enable gameObjects with BoundsControls an no boxPadding

Unity editor version

Unity 2019.4.9

Mixed Reality Toolkit release version

MRTK 2.5

Luckypon avatar Oct 12 '20 07:10 Luckypon

I'm having the same problem on MRTK2.7.2. NearInteractionGrabbable missing even if boxpadding is non-Vector3.zero. (EnsureComponent not working correctly?)

STak4 avatar Sep 14 '21 07:09 STak4

Hi all,

I also encountered the same issue in MRTK 2.7.0

"NearInteractionGrabbable" will disappeared when the Gameobject (which also contains BoundsControl) disabled then re-enable.

In addition, the BoundsControl will become weird even I added back "NearInteractionGrabbable" in Unity Editor runtime.

My current work-around:

  1. Remember the GameObject called OnDisable() (set flag)
  2. Remember the final working BoxCollider size
  3. In OnEnable(), check flag is set or not. If set, do the following 3 things:
    • Manually set back the memorized BoxCollider size
    • Call BoundsControl's "CreateRig()"
    • Manually add back "NearInteractionGrabbable"

Please help.

Thanks.

cclo-astri avatar Nov 24 '21 06:11 cclo-astri

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!

IssueSyncBot avatar Jan 13 '24 01:01 IssueSyncBot