insert AUTO_DEL_LAYER after POST_END_LAYER

This commit is contained in:
Mikhail 2023-06-18 19:08:45 +08:00
parent 28e786ca7a
commit 75031b0014

View File

@ -54,7 +54,7 @@ namespace DCFApixels.DragonECS
where TComponent : struct, IEcsComponent
{
if (AUTO_DEL_LAYER == layerName)
b.Layers.Insert(EcsConsts.POST_END_LAYER, AUTO_DEL_LAYER);
b.Layers.InsertAfter(EcsConsts.POST_END_LAYER, AUTO_DEL_LAYER);
b.AddUnique(new DeleteOneFrameComponentSystem<TComponent>(), layerName);
return b;
}