I am currently doing a Project which involves Vuforia sample for Hololens 2 for Unity version 2019.4.10f1 Personal,
which involves Image Tracking. I understand there is an Inbuilt MRTK Version 2.5.3. While developing an
Application I encountered a bug after switching from Game mode to Scene mode in Unity. I am not
able to access the Interactable Script of any Prefab Object (Example: A PressableButton) in the Project and therefore
I am not able to add any Interaction for a particular Button to perform an action.
When I click on the InteractableScript in the Inspector Window it just doesn't open and I get a NullReferenceException.
May be there is some dependency Problem and some piece of code gives rise to this Exception.
NullReferenceException: Object reference not set to an instance of an object
Microsoft.MixedReality.Toolkit.UI.Editor.InteractableInspector.TryGetInputActions (System.String& descriptionsArray) (at Assets/MRTK/SDK/Editor/Inspectors/UX/Interactable/InteractableInspector.cs:559)
Microsoft.MixedReality.Toolkit.UI.Editor.InteractableInspector.OnInspectorGUI () (at Assets/MRTK/SDK/Editor/Inspectors/UX/Interactable/InteractableInspector.cs:82)
UnityEditor.UIElements.InspectorElement+c__DisplayClass58_0.b__0 () (at :0)
But the Interactable Script is working in the Runtime (Game Mode) but not in the Scene Mode.
I am not able to understand why this occurs and I have also raised a Issue in github of MRTK and I got an answer which I am not able to implement it into the Project.
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9882#issuecomment-856317545 --- this is the link for your reference.
Please do help me with this issue.