Skip to content

Commit 2a054e1

Browse files
1802846624AlianBlank
authored andcommitted
解决EntityManager.ShowEntityShow中嵌套GameFrameX.Entity.Runtime.ShowEntityInfo为UserData无法正确Release问题
Signed-off-by: 1802846624 <[email protected]>
1 parent a0aa420 commit 2a054e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/Entity/Entity/EntityManager.ShowEntityInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public void Clear()
9797
m_SerialId = 0;
9898
m_EntityId = 0;
9999
m_EntityGroup = null;
100+
if (m_UserData is GameFrameX.Entity.Runtime.ShowEntityInfo entityInfo)
101+
{
102+
ReferencePool.Release(entityInfo);
103+
}
100104
m_UserData = null;
101105
}
102106
}

0 commit comments

Comments
 (0)