Basic Authenticator
Last updated
Last updated
Mirror includes a Basic Authenticator in the Mirror / Authenticators folder which just uses a simple username and password.
Drag the Basic Authenticator script to the inspector of the object in your scene that has Network Manager
The Basic Authenticator component will automatically be assigned to the Authenticator field in Network Manager
When you're done, it should look like this:
Server Credentials can be set at design time or runtime
Client Credentials would be set at runtime, e.g. from UI input fields, before calling NetworkManager.singleton.StartClient();