Skip to content

Commit

Permalink
Merge pull request #127 from hadashiA/ku/support-domain-reload
Browse files Browse the repository at this point in the history
Fix condition to detect missing reference
  • Loading branch information
hadashiA authored Feb 14, 2021
2 parents f5d6f82 + d12dfb2 commit dc6b47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit dc6b47c

@vercel
Copy link

@vercel vercel bot commented on dc6b47c Feb 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.