How disable auto remove objects on client, when disconnect

Hi, we have HEAVY objects like cars, and humans. And we use pool for this - for reuse

When we lost connection(or close) on CLIENT side, unity automatically remove this objects!

How on client, we can do disable Destroy for this objects, and use - UnSpawn?

Thanks!

Wonderful in unity 5.6 this objects call UnSpawn! Thank unity!

On extend class from NetworkManager

public override void OnClientDisconnect(NetworkConnection conn)
{
Debug.Log("OnClientDisconnect " + conn.address);

//StopClient will call here and auto destroy gameobject
//base.OnClientDisconnect(conn);

}

read unet hlapi from bitbucket

1 Like