? OnConnectedToServer event detection

Hello Unityrs,

I have built 2 levels: one with the GUI for activating a server, and the second will contain the gui for the CHAT window.
now, in the second script, I implementing the OnConnectedToServer event…which I thought would’ve have been called when a server is activated.
Unfortunately, as soon as I start the server, nothing happens. Do I have to LoadLevel first and then activate the server?
How can I address the event detection to another Script?

Thank you.
Giancarlo

OnConnectedToServer should be triggered on the client when he has successfully connected. OnServerInitialized is called when a server is activated, described in the Network script reference. It’s not connected to loading levels. These two should always trigger except if there is some error, you might see something in the logs in that event, you can tweak the debug logging level in the Network Manager project settings.