diff --git a/Runtime/LLM.cs b/Runtime/LLM.cs index 0f7388f9..d4756c3f 100644 --- a/Runtime/LLM.cs +++ b/Runtime/LLM.cs @@ -214,7 +214,7 @@ public async void Awake() slotSaveDir = Application.persistentDataPath; if (asynchronousStartup) await Task.Run(() => StartLLMServer()); else StartLLMServer(); - if (dontDestroyOnLoad) DontDestroyOnLoad(gameObject); + if (dontDestroyOnLoad) DontDestroyOnLoad(transform.root.gameObject); } private void SetupLogging()