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

TapToPlace Inspector throws errors

Open justinpando opened this issue 5 years ago • 1 comments

Describe the bug

This error occurs when I try to expand Advanced Properties - it also doesn't show the Magnetic Surfaces field which prevents following along with Creating dynamic content using Solvers

NullReferenceException: Object reference not set to an instance of an object UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <5984c823338e4ca69b7a0ca01115425e>:0) UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUILayoutOption[] options) (at <5984c823338e4ca69b7a0ca01115425e>:0) Microsoft.MixedReality.Toolkit.Utilities.Editor.Solvers.TapToPlaceInspector.RenderAdvancedProperties () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@417f47aed5c2-1617916890577/SDK/Editor/Inspectors/Utilities/Solvers/TapToPlaceInspector.cs:118) Microsoft.MixedReality.Toolkit.Utilities.Editor.Solvers.TapToPlaceInspector.RenderCustomInspector () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@417f47aed5c2-1617916890577/SDK/Editor/Inspectors/Utilities/Solvers/TapToPlaceInspector.cs:99) Microsoft.MixedReality.Toolkit.Utilities.Editor.Solvers.TapToPlaceInspector.OnInspectorGUI () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@417f47aed5c2-1617916890577/SDK/Editor/Inspectors/Utilities/Solvers/TapToPlaceInspector.cs:72) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.b__0 () (at <5984c823338e4ca69b7a0ca01115425e>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

To reproduce

Follow the above tutorial and put a TapToPlace component on an object, then expand Advanced Properties.

Expected behavior

I expect to see all advanced properties including Magnetic Surfaces.

Screenshots

image

Your setup (please complete the following information)

  • Unity Version 2019.4.24f1
  • MRTK Version 2.6.1

Target platform (please complete the following information)

  • HoloLens 2

Additional context

In the above screenshot there's also an unrelated error thrown by the NearInteractionGrabbable because the Cube prefab object in the tutorial Initializing your project and deploying your first application doesn't have any colliders on the base object.

justinpando avatar Apr 15 '21 23:04 justinpando

This is a duplicate of https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9645, which was fixed in https://github.com/microsoft/MixedRealityToolkit-Unity/pull/9646 and shipped today in our preview.3 release of 2.7.0.

keveleigh avatar Apr 16 '21 00:04 keveleigh