Skip to content

Commit af96e2d

Browse files
committed
unitypool-original object set false
1 parent b76445f commit af96e2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtime/UnitytComponentPool.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class UnitytComponentPool<T> : SimplePool<T>
1010

1111
public UnitytComponentPool(T originItem, int initializeSize = 0) : base(originItem, initializeSize)
1212
{
13+
originItem.gameObject.SetActive(false);
1314
}
1415

1516
public UnitytComponentPool(Func<T> onCreateInstance, int initializeSize = 0) : base(onCreateInstance, initializeSize)

0 commit comments

Comments
 (0)