Unity-Technologies / EditorXR

Author XR in XR
Other
925 stars 167 forks source link

Context Manager object is destroyed #530

Closed mtschoen-unity closed 5 years ago

mtschoen-unity commented 5 years ago

During the course of using EditorXR (opening/closing VRView and entering/exiting Play Mode), any object with an EditingContextManager component in an open scene may be unintentionally destroyed. It appears to be caused by the EditorXR lifecycle, in that it will create its own version of this object at edit time and then destroy it.

This can result in confusing situations like entering Play Mode or building a Player and not having EditorXR functionality when you expect to have it. For now, make sure that you attach the EditingContextManager component to an empty object that is easy to recover.