This commit is contained in:
DCFApixels 2025-05-15 13:10:54 +08:00
parent 7f80f2564c
commit 71f1328a59

View File

@ -231,7 +231,15 @@ namespace DCFApixels.DragonECS.Unity.Editors.X
{
if (_runtimeComponentsDepth == RuntimeComponentsDepthRoot)
{
_drawers[0].DrawWorldComponents_Internal(world);
try
{
_runtimeComponentsDepth = 0;
_drawers[0].DrawWorldComponents_Internal(world);
}
finally
{
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
}
}
}
private void DrawWorldComponents_Internal(EcsWorld world)