Network Object Pool question
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Fusion.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Network Object Pool question
vimrzhang
2022-08-26 09:11:12
I called the Runner.despawn method and did not destroy the object, did I use the object pool? Is there any difference with this Network Object Pool?
Comments
Isaac_Augusto
2022-08-26 14:50:14
Hi, not sure if i understood, could you please explain more your problem?
Isaac Augusto
Photon Fusion Team
That is, I created a bullet. After calling the despawn method, it will be directly hidden under the NetworkRunner node instead of being destroyed. I guess whether the object pool technology is used. So is it the same as the INetworkPool function?
Isaac_Augusto
2022-08-29 11:35:39
I'm sorry, i still don't quite understood.
If you're using a NetworkObjectPool
, the ReleaseInstance
behaviour of the INetworkObjectPool
will be called when you despawn that object. If your Object Pool disables it and set the runner as the parent, then that's expected behaviour.
Isaac Augusto
Photon Fusion Team
This question is an exploratory question, just raised for discussion. My other question is very serious, I have asked it many times and no one has answered it.
In the official example Fusion-Tanknarok, if I move a tank to ram another tank, the tank jumps up, the tank's movement component uses the NetworkCharacterControllerPrototype. Because our game has a jumping feature, this issue seriously affects the gameplay. More detailed description below:
Back to top