mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 09:24:35 +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++;
|
||||
|
||||
_drawers[_runtimeComponentsDepth].DrawRuntimeComponents(entityID, world, isWithFoldout);
|
||||
|
||||
_runtimeComponentsDepth--;
|
||||
if (_runtimeComponentsDepth < RuntimeComponentsDepthRoot)
|
||||
try
|
||||
{
|
||||
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
|
||||
_drawers[_runtimeComponentsDepth].DrawRuntimeComponents(entityID, world, isWithFoldout);
|
||||
}
|
||||
finally
|
||||
{
|
||||
_runtimeComponentsDepth--;
|
||||
if (_runtimeComponentsDepth < RuntimeComponentsDepthRoot)
|
||||
{
|
||||
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void DrawRuntimeComponents(int entityID, EcsWorld world, bool isWithFoldout)
|
||||
|
Loading…
Reference in New Issue
Block a user