This project demonstrates how to integrate the Huddle01 Unity WebGL plugin with the Mirror SDK for multiplayer projects.
- Mirror SDK: Mirror Networking Documentation
- Invector 3rd Person Controller LITE: Invector Basic Locomotion
- Switch Platform: Change the platform to Dedicated Server.
- Open Scene: Open the scene
Invector_BasicLocomotion
. - Disable Components:
- Disable the GameObject
Manager
. - Disable the
MetaverseHuddleCommManager
component attached to theManager
GameObject.
- Disable the GameObject
- Provide Values in
Constant.cs
:ProjectId
ApiKey
RoomId
- Implement Token Method: Implement the
CmdSetHuddleToken
method to get a token from the server. Refer to the Huddle01 API Documentation for implementation. - Build: Proceed with the build process.
- Switch Platform: Change the platform to WebGL.
- Open Scene: Open the scene
Invector_BasicLocomotion
. - Enable Components:
- Enable the GameObject
Manager
. - Enable the
MetaverseHuddleCommManager
component attached to theManager
GameObject.
- Enable the GameObject
- Build: Proceed with the build process.
For detailed build instructions, refer to the Mirror Networking Documentation.