Merge pull request #652 from Balint-H:fix/unity-scene-tranisition
PiperOrigin-RevId: 495876985 Change-Id: I9880aa6bd2fc696509e518449a35a69457d92ba4
This commit is contained in:
@@ -99,7 +99,7 @@ public abstract class MjComponent : MonoBehaviour {
|
||||
}
|
||||
|
||||
public void OnDisable() {
|
||||
if (!_exiting) {
|
||||
if (!_exiting && MjScene.InstanceExists) {
|
||||
MjScene.Instance.SceneRecreationAtLateUpdateRequested = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user