Pressing a button on the Canvas Dialog either directly - using a tracked hand - or indirectly - using a raycast/pointer causes an object reference not set to an instance of an object error in the console.
To reproduce
Import the packages as shown:
Steps to reproduce the behavior:
Create a project using Unity 2021.3.24f1
Set it up to use OpenXR and the hand interaction profile and meta aim extension
Add a number of input bindings - Microsoft Hand Interaction Profile, Oculus Touch Controller Profile, Valve Index Controller Profile
Enable the MRTK subsystems as shown: (note I have not added with windows speech package)
Delete the main camera and add a new MRTK XR Rig prefab
Add the Canvas Dialog prefab
Run
Press the canvas dialog buttons either directly using hands or indirectly using a ray/pointer
Console shows an error each time the button is selected/clicked. Button appears to respond to the click as expected (depresses, hear click sound)
Expected behavior
No error is shown.
Screenshots
See above.
Your setup (please complete the following information)
Unity Version [e.g. 2021.3.24f1]
MRTK Version - see screenshot - testing the 4.0.0-pre.1 packages.
Target platform (please complete the following information)
Windows 11, Steam VR, Valve Index + Ultraleap Tracking Camera and Software.
This was an issue with not being familair with how the dialog system is meant to work. Using the dialog pool in conjunction with the prefab works fine.
Pressing a button on the Canvas Dialog either directly - using a tracked hand - or indirectly - using a raycast/pointer causes an object reference not set to an instance of an object error in the console.
To reproduce
Import the packages as shown:
Steps to reproduce the behavior:
Expected behavior
No error is shown.
Screenshots
See above.
Your setup (please complete the following information)
Target platform (please complete the following information)