NetcodePlus Integration
Last updated
Last updated
You can integrate this User API with NetcodePlus or Survival Engine Online.
To do so, import both assets into your project.
Follow the steps of each asset to install the NetcodePlus Server and the User Login Web API
Once everything works individually, you can enable User API login by going into
Resources/NetworkData
And change the Authentication type
Also make sure that all your ApiData config are set properly and that your server and database are running. In this example the api is running locally. But it can be a on a remote server as well.
Open the MenuLobby scene and add the ApiManager prefab to it.
Also, enable the hidden password field in the scene.
Run the scene and try to login with your username / password.
You should also add the ApiManager to your other scenes, it can be added inside another manager prefab that you use in your game scenes.
For other features such as editing your account, you will need to integrate the ui into your Netcode project. But you can use the UserLogin demo as example of how to do this, depending on which features you need.