06 Package Content - Alteruna/au-multiplayer-guide GitHub Wiki

Prefabs

Room Menu

The RoomMenu prefab contains a menu shows a list of all the Rooms available to the registered license and ApplicationID.

To start and join a new Room, click the Start button.

To join a Room, click the Join button next to it.

image

Whenever you want to leave a Room, click the Leave button in the Room Menu.

Synchronizables

The package contains a few Synchronizables, these can be used in your game, as well as inspiration for making your own!

The Synchronizables that come with the package are:

  • ExampleSynchronizable - A fully commented example of how a Synchronizable works, and how it can look. It can also be seen here
  • TransformSynchronizable - A Synchronizable that keeps transform data (position/rotaiton/scale) synchronized between all Users in the Room.
  • RigidbodySynchronizable/Rigidbody2DSynchronizable - Synchronizables that synchronizes physics behavior between all Users in the Room.

Utility

  • Spawner - A component that can be used to spawn objects into the world for all Users in the Room at once.