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,14 +247,19 @@ namespace DCFApixels.DragonECS.Unity.Editors.X
|
||||
}
|
||||
_runtimeComponentsDepth++;
|
||||
|
||||
try
|
||||
{
|
||||
_drawers[_runtimeComponentsDepth].DrawRuntimeComponents(entityID, world, isWithFoldout);
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
_runtimeComponentsDepth--;
|
||||
if (_runtimeComponentsDepth < RuntimeComponentsDepthRoot)
|
||||
{
|
||||
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void DrawRuntimeComponents(int entityID, EcsWorld world, bool isWithFoldout)
|
||||
{
|
||||
using (EcsGUI.Layout.BeginVertical(UnityEditorUtility.GetTransperentBlackBackgrounStyle())) using (EcsGUI.SetIndentLevel(0))
|
||||
|
Loading…
Reference in New Issue
Block a user