microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6.01k stars 2.12k forks source link

Duplicates of if you use a new camera #3564

Closed markgrossnickle closed 5 years ago

markgrossnickle commented 5 years ago

Overview

Running a scene with a newly created camera causes duplicate game objects to be created: image

Expected Behavior

A single camera and cursor should be in the scene.

Actual Behavior

Duplicate playspaces, cameras and cursors are created.

Steps to reproduce

  1. Create a new scene
  2. Delete Main Camera
  3. Right click in hierarchy and create new camera.
  4. Click MRTK -> Configure and select a profile Note, the scene is fine at this point.
  5. Click run in Unity.

Now you will see the following error in the logs: 'Too many event systems in the scene. The teleport system requires only one.'

You will also see duplicate cursors/cameras: image

Unity Editor Version

2018.3.6f1

Mixed Reality Toolkit Release Version

I am not sure how to tell? I just have the latest from github release branch as of today.

david-c-kline commented 5 years ago

Thanks for the report @markgrossnickle !

keveleigh commented 5 years ago

I wasn't able to repro this on the latest. Some work has been done to make our main camera detection and asset creation more robust, but please reopen if you're still able to repro.