👥
User Login API
  • Getting Started
    • User Login API
    • Install Server Locally
    • Test with Insomnia
    • Cloud Server Installation
    • Remote Access and DB Authentication
    • Enable HTTPS
    • Enable Email Sending
  • Requests
    • Unity Requests
    • Register and Login
    • Get Users
    • Edit Users
    • Gain Rewards
    • Contacts/Friends
    • Activity
  • Other
    • Custom Code and Data
    • NetcodePlus Integration
    • Support and Community
Powered by GitBook
On this page
  1. Other

NetcodePlus Integration

Last updated 1 year ago

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.