From d12dfb2c77f7ffa1b61ec1fc99e36269f84f8cff Mon Sep 17 00:00:00 2001 From: hadashi Date: Sun, 14 Feb 2021 16:30:08 +0900 Subject: [PATCH] Fix condition to detect missing reference --- VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs b/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs index 74568919..078fbcde 100644 --- a/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs +++ b/VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs @@ -279,7 +279,9 @@ LifetimeScope GetRuntimeParent() UnityEditor.EnterPlayModeOptions.DisableDomainReload) > 0; if (rootLifetimeScope == null && disableDomainReloading) { - UnityEngine.Debug.LogError("VContainerSettings.RootLifetimeScope is missing. Please try to re-compile C# scripts just once."); + var path = UnityEditor.AssetDatabase.GetAssetPath(rootLifetimeScope); + if (!string.IsNullOrEmpty(path)) + UnityEngine.Debug.LogError($"VContainerSettings.RootLifetimeScope is missing : {path}. Please try to re-compile C# scripts just once."); } #endif if (rootLifetimeScope != null)