StansAssets / com.stansassets.foundation

Collection of utility methods, design patterns, and extensions for Unity.
https://stansassets.com/
MIT License
129 stars 12 forks source link

feat: fancy component pool implementation #73

Closed alexey-yaremenko closed 3 years ago

alexey-yaremenko commented 3 years ago

Purpose of this PR

A fancy version of Component Pool implementation was added to the package.

Intent: There is a PrefabPool implementation available in the Foundation package already. Besides the cases where you need only a pure GameObject entity instantiated from the prefab source, there are cases where you want to have a component instance from the prefab root. So this pool implementation is exactly about it.

Testing status

Manual testing status

Tested in Unity Editor.