UPF/Assets/Mirror/Examples/Room
2022-06-14 01:57:42 +05:30
..
Materials Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Prefabs Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Scenes Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Scripts Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Materials.meta Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Prefabs.meta Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
README.md Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
README.md.meta Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Scenes.meta Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30
Scripts.meta Mirror intergrated, WIP on Client Prediction v1 2022-06-14 01:57:42 +05:30

Room Example

In Build Settings, remove all scenes and add all of the scenes from the Examples\Room\Scenes folder in the following order:

  • OfflineScene
  • RoomScene
  • OnlineScene

If you opened the Offline scene before doing the above steps, you may have to reassign the scenes to the NetworkRoomManagerExt component of the RoomManager scene object.

File -> Build and Run

Start up to 4 built instances: These will all be client players.

Open the Offline scene in the Editor and press Play

Click Host (Server + Client) in the HUD: This will be host and the 5th player. You can also use Server Only if you prefer.

Click Client in the built instances.

Click Ready in each instance, and finally in the Editor (Host).

Click the Start Game button when all players are ready.

You should now be in the Online scene with your players of random color.

WASDQE keys to move & turn your player capsule. Collide with the spheres to score points. Lighter colors score higher.