mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
Update RuntimeComponentsDrawer.cs
This commit is contained in:
parent
236eb3d2bb
commit
09f7c6103d
@ -247,12 +247,17 @@ namespace DCFApixels.DragonECS.Unity.Editors.X
|
|||||||
}
|
}
|
||||||
_runtimeComponentsDepth++;
|
_runtimeComponentsDepth++;
|
||||||
|
|
||||||
_drawers[_runtimeComponentsDepth].DrawRuntimeComponents(entityID, world, isWithFoldout);
|
try
|
||||||
|
|
||||||
_runtimeComponentsDepth--;
|
|
||||||
if (_runtimeComponentsDepth < RuntimeComponentsDepthRoot)
|
|
||||||
{
|
{
|
||||||
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
|
_drawers[_runtimeComponentsDepth].DrawRuntimeComponents(entityID, world, isWithFoldout);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_runtimeComponentsDepth--;
|
||||||
|
if (_runtimeComponentsDepth < RuntimeComponentsDepthRoot)
|
||||||
|
{
|
||||||
|
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void DrawRuntimeComponents(int entityID, EcsWorld world, bool isWithFoldout)
|
private void DrawRuntimeComponents(int entityID, EcsWorld world, bool isWithFoldout)
|
||||||
|
Loading…
Reference in New Issue
Block a user