MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
407 stars 110 forks source link

Go to component button on Object Manipulator not working #313

Closed IssueSyncBot closed 1 year ago

IssueSyncBot commented 1 year ago

Original issue opened by:

@MaxWang-MS MaxWang-MS


Describe the bug

The "Go to component" button under the constraints section of the Object Manipulator on many GameObjects (e.g. all in the bounding box section and all but the earth in the manipulation interaction section) in the HandInteractionExamples scene is not working. When pressed, the following warning appear in the console:

Item Min Max Scale Constraint (Script) not found in window Inspector. UnityEditor.Highlighter:Highlight(String, String) Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility:DrawComponentTypeFoldout(GameObject, Boolean, String) (at Assets/MRTK/Core/Inspectors/Utilities/InspectorUIUtility.cs:742) Microsoft.MixedReality.Toolkit.Editor.ObjectManipulatorInspector:OnInspectorGUI() (at Assets/MRTK/SDK/Editor/Inspectors/UX/ObjectManipulator/ObjectManipulatorInspector.cs:133) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

It seems that all GameObjects with the Object Manipulator attached and at least one constraint set there are affected.

To reproduce

  1. Open HandInteractionExamples.unity
  2. Press play
  3. Try clicking any GameObject mentioned above
  4. Go to inspector
  5. Click on the "Go to component" button under the constraints section of the Object Manipulator
  6. See error

Expected behavior

The button should work.

Your setup


ISSUE MIGRATION

Issue migrated from: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/8554

IssueSyncBot commented 1 year ago

Original comment by:

@MaxWang-MS MaxWang-MS


Cannot repro with Unity 2018.4.26f1, so it seems to be a Unity bug.

IssueSyncBot commented 1 year ago

Original comment by:

@wiwei wiwei


Doesn't seem to be specific to UPM, can also repro this in .unitypackages

IssueSyncBot commented 1 year ago

Original comment by:

@wiwei wiwei


Also can confirm, even using Highlighter.Highlight on some basic things that should work (i.e. Hierarchy -> GameObject) doesn't work, so there's probably a regression here in 2019 Unity.

Removing from 2.5 milestone, we can file a bug on Unity for this one.

IssueSyncBot commented 1 year ago

Original comment by:

@stale[bot] stale[bot]


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.

IssueSyncBot commented 1 year ago

Original comment by:

@AMollis AMollis


@marlenaklein-msft can you please check if this is still reproducible?

IssueSyncBot commented 1 year ago

Original comment by:

@marlenaklein-msft marlenaklein-msft


Tested the MRTK3 HandInteractionExamples.unity scene with Unity 2020.3.44 to see if this repros for MRTK3. Pressing the 'Go to component' button under the constraints section of Object Manipulator highlights the component id under Constraint Manager, but pressing the 'Go to component' button under Constraint Manager produces a similar "Item Min Max Scale Constraint (Script) not found in window Inspector" error.

IssueSyncBot commented 1 year ago

Original comment by:

@marlenaklein-msft marlenaklein-msft


Bugs with highlight not disappearing and not scrolling to the right place in some versions of Unity.

IssueSyncBot commented 1 year ago

Original comment by:

@marlenaklein-msft marlenaklein-msft


Fixed with PR #11497