qfsw / masterobjectpooler2 Goto Github PK
View Code? Open in Web Editor NEWMaster Object Pooler 2 is a high performance, flexible and easy to use object pooling solution that can fit into any Unity project
License: MIT License
Master Object Pooler 2 is a high performance, flexible and easy to use object pooling solution that can fit into any Unity project
License: MIT License
MOP2 should have unit tests that cover most functionality, additionally all previously logged issues should have regression tests written where possible
While MOP2 is small and manual testing would likely suffice, automated testing should help MOP2 stand the test of time
It would be very convenient to have a method to fetch the current list of active pool objects. This is accessible in most circumstances by checking the children of the pool's transform, but that's less efficient than having access to the internally tracked records.
Can't destroy Transform component of 'EnemyBarnaclePool Pool'. If you want to destroy the game object, please call 'Destroy' on the game object instead. Destroying the transform component is not allowed.
Should be destroying the GameObject instead of the transform
how can i make a coroutine wait for the initialization of pool to avoid hiccup on the process loading or middle of the game?
A singleton mode should be added to the MasterObjectPooler that makes it scene persistent, forces one instance (destroys itself if singleton access point is taken) and creates a static access point
Currently, the pool is initialized/cleansed on EditorApplication.playModeStateChanged
for the case EnteredPlayMode
This can be somewhat problematic, as if GetObject
is called on the first frame of the game, this happens before the event, and thus the pool won't be cleansed yet (resulting in warnings about null objects in the pool)
Furthermore, this means the auto initialize option actually takes a frame too long to kick in, which means that IPoolable
s may not be initialized
The first problem can be remedied by moving the cleanse into ExitingEditMode
, not sure about the second
Is is possible ? i think so.. the question is how much would need to change to add support for it..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.