NetworkIdentity Objects(nonplayer objects) are not enabled on clients.

NetworkIdentity Objects(nonplayer objects) are not enabled on clients. only when i use my custom networkmanager script.

Helo Friends… here i quickly describe the problem(Or what i didnt understand)

  1. now I have default Networkmanager,playerprefab and one gameobject with network identity in the scene.
    when i connect the client to the server everything works fine . i can see the gameobject which has network indentity onthe client.

but now i want to override the networkmanager. so i removed the default netwrokmanager and created my own networkmanager.

afgter this i cannot see the game objects which has network identity on my clients scene. plesae guide me what i am doing wrong…

Thankyou
Arulbabu

Do it step by step. Overwrite one function, see if that’s what caused it. Then overwrite the next and see if that’s what caused it, etc.

Once you find the function that causes it, look into the HLAPI source code for NetworkManager and see what you need to do for it to work. Most likely you need to call base.SomeFunction() too when overwriting SomeFunction.

Thankyou @mischa2k . I will do and let you know what i did wrong :slight_smile:

hey @mischa2k found it .

public override void OnClientConnect(NetworkConnection conn)
{
base.OnClientConnect(conn);
Network_Manager_UI.Instance.Server_Log(“OnClientConnect”, false);
Network_Manager_UI.Instance.Client_Btn_Text.text = “Disconnect”;

// NETWORK_CALLS.Instance.Cmd_Count();

}

as you said i missed “base.OnClientConnect(conn);”

Thanks bro . you saved my time :slight_smile:

1 Like