Question by
VirtualDreamer · Oct 21, 2020 at 09:31 AM ·
multiplayermirror
How to detect client connection using Mirror?
How do I detect when a client connects on my host using Mirror? onClientConnection doesn't seem to work. help me please! this script is attached to a network manager component alt text
untitled.png
(139.8 kB)
Comment
Hi there,
Not sure about your use case but...
You probably want to look at the OnPlayerConnected() which is called on the server whenever a new player connects.
Hope that helps!
Answer by unity_krb8-pNyPukfig · Mar 10, 2021 at 08:17 PM
https://mirror-networking.gitbook.io/docs/guides/communications/networkmanager-callbacks#client-mode
This page has your answer :)