I have many bullets are created in the game through NetworkServer Spawn (), but when the bullets are destroyed, I can’t find a way to recovery the bullet netId distributed by the system. This leads to growing netId value of every bullet that I create later. Is netId infinite? I need to worry about whether netId will be run out?
Looking at the Unity docs, it says that the netID value is a uint, which means the maximum possible value is upwards of 4 billion. Given your game, do you think players will shoot more than 4 billion bullets in a single game? If you will in no way ever get close to that number, you’re fine.
I’m sure there’s some way to reset it, although whether that happens with restarting the host I’ve no idea, but unless you’re running your game for weeks I doubt you’ll ever hit near a billion or so bullets.
1 Like
thanks for your help:)