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

Unity Throws assertions for main camera

Open StephenHodgson opened this issue 9 years ago • 8 comments

Overview

In 2017.2.0f3 and 2017.2.0p1 unity throws assertions for the main camera when checking is the display is opaque.

Assertion failed: Main camera does not exist!
UnityEngine.XR.WSA.HolographicSettings:get_IsDisplayOpaque

Steps for work around

Use the MRTP editor builds

Unity Editor Version

2017.2.0f3 and 2017.2.0p1

Mixed Reality Toolkit Release Version

db59a1c7fa0c0c463466028c5f3e70088bbfda52

StephenHodgson avatar Nov 15 '17 15:11 StephenHodgson

Has this bug been reported to Unity? (I can not find it in the Unity Bug tracker)

brean avatar Nov 21 '17 14:11 brean

If we are updating the current Unity version to 2017.2.1f1 from the MRTP versions, then this Assertion error is still there.

genereddick avatar Dec 19 '17 01:12 genereddick

I don't get the assertion with that editor build

StephenHodgson avatar Dec 19 '17 02:12 StephenHodgson

I get this assertion in the editor in 2017.2.1f1 vanilla version... I thought we didn't need MRTP versions at 2017.2.1?

I also just grabbed the latest Toolkit from Master yesterday.

markgrossnickle avatar Dec 21 '17 15:12 markgrossnickle

For anyone else hitting this... wrapping a Application.isEditor check around each call to prevent the code from getting hit in the editor is a messy but working solution.

markgrossnickle avatar Dec 21 '17 15:12 markgrossnickle

@markgrossnickle, this should be resolved with later versions of Unity

StephenHodgson avatar Dec 21 '17 18:12 StephenHodgson

I am having the same error in the SharingTest.scene using:

Latest master branch release: 2017.4.1.0 Unity version Patch 2017.2.1p2

I applied project settings, scene settings and UWP capability settings

StarWardo avatar Aug 29 '18 11:08 StarWardo

@StarWardo Unfortunately, this is a Unity bug with seemingly many versions of 2017.2. The Toolkit and Microsoft now recommend Unity's LTS branch, 2017.4, for WMR development.

keveleigh avatar Aug 29 '18 16:08 keveleigh