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

"Add to Scene and Configure" doesn't gracefully fail when no camera is present in the scene.

Open Cameron-Micka opened this issue 7 years ago • 4 comments

Describe the bug

When the "Mixed Reality Toolkit->"Add to Scene and Configure..." menu item is selected in a scene without a camera a handful of null reference exceptions occur and the MRTK is not configured correctly.

The project we are seeing this occur in loads a camera dynamically at runtime based on certain project restrictions.

To reproduce

Select "Mixed Reality Toolkit->"Add to Scene and Configure..." in a scene without a camera.

Expected behavior

All exceptions are gracefully handled. Optionally, anything relying on the Camera or Camera Cache could automatically setup a main camera for the user.

Cameron-Micka avatar Apr 22 '19 17:04 Cameron-Micka

Related: #3890

Railboy avatar Apr 22 '19 17:04 Railboy

Assigning to @Yoyozilla to find an owner.

chrisfromwork avatar Apr 23 '19 15:04 chrisfromwork

Cameron, could you please check that your issue is fixed by Lar's PR linked above?

Yoyozilla avatar Apr 30 '19 19:04 Yoyozilla

Thanks! I'll give this a try when I get a chance.

Cameron-Micka avatar May 07 '19 18:05 Cameron-Micka