From 1fdbfa7061f439d1dedf6caeae106407c57dbbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Hodossy?= Date: Fri, 18 Nov 2022 11:25:08 +0000 Subject: [PATCH] Add MjScene property to check if scene has initialized --- unity/Runtime/Components/MjScene.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unity/Runtime/Components/MjScene.cs b/unity/Runtime/Components/MjScene.cs index e3314371..bdc720c6 100644 --- a/unity/Runtime/Components/MjScene.cs +++ b/unity/Runtime/Components/MjScene.cs @@ -62,6 +62,8 @@ public class MjScene : MonoBehaviour { return _instance; } } + + public static bool InstanceExists { get => _instance != null; } public void Awake() { if (_instance == null) {