Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

issue with Enable/Disable network spawned prefabs

$
0
0
To reduce the cost of instantiating prefabs on the server I created a pool of objects(bullets in this case). Then I just pull one that is disabled and call networkserver.spawn(). I enable the object beforehand of course. The bullet travels for x amount of time before I disable it (server side). The interesting thing is that some of the bullets get stuck on the client in some weird state where they are still enabled but not moving. On the server they disappear as expected. I'm also using...

issue with Enable/Disable network spawned prefabs

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>