Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: polygon on September 21, 2014, 08:23:38 AM
-
Hi :)
I'm trying to create a pool of objects with playmaker and arraymaker but can't figure out how to do this properly.
To be more precisely I'd like to spawn a prefab 100 times while the level is loading and store them in an array of game objects but I have unfortunately no idea how to do this :(
Best regards,
Daniel
-
ArrayMaker can store the objects, but for actual pooling, you'd want to look into something like PoolManager (http://poolmanager.path-o-logical.com/). There isn't tons of tutorials on doing that, but the Playmaker Actions are pretty easy to understand.
-
Hi,
poolManager is a really cool stuff.
You re right.
But I have a big question :
How can I ise it with Photon multiplayer?
If I want to spwawn with poolManager and instant irate this spawn with a network-photon instantiate ?
Can I do that ?
Thanks a lot for your help.
Best regards,
Anthony
-
I haven't a lot of experience with Photon yet, but I'd imagine you're just telling it to spawn a pre-fab which seems pretty basic. Maybe someone else would like to chime in?
-
On fact toi have to instantiate the prefab with photon. It's a special method.
And when there is a lot of instantiate to do, with the same object, it's better to use poolManager...
But poolManager + photon ...?!
-
Hi,
I don't think there is a pool system for Photon since photon use resources to get its prefabs to instantiate.
I'll ask the team to see if they have something.
Bye,
Jean
-
Thanks Jean you're the best !