Skip to main content

Multiplayer

Procedures running in the WEAVR Player support multiplayer by default. If you do not want to use multiplayer in your procedure, disable the Collaboration option under the Collaboration Settings section in your procedure asset.


Collaboration Settings

Collaboration Settings

The Collaboration Settings section in the procedure asset controls multiplayer behavior. Disable the Collaboration option to run a procedure in single-user mode.

note

To enable Multiplayer inside a procedure you need to activate its capability in the Procedure asset file.


WeavrMultiplayer Object

WeavrMultiplayer Object

The WeavrMultiplayer game object contains the multiplayer networking component used to enable standalone multiplayer support in a build.


Standalone Multiplayer

Standalone Multiplayer Component

Your procedure can support multiplayer even in a standalone build, where the WEAVR Player is not used.

To use multiplayer in standalone build:

  1. Enable the Standalone Multiplayer component in the WeavrMultiplayer game object.

  2. Set your app details in the Standalone Multiplayer component.

    Standalone Multiplayer Setup

  3. Check the On Premises Server option if you are using a self-hosted Photon Server.

    Standalone Multiplayer On-Premises Server Setup

  4. Uncheck the On Premises Server option if you are using Photon Cloud service.

    Standalone Multiplayer Cloud Server Setup


Multiplayer Components

note

WEAVR supports cross-platform multiplayer across VR and Android devices (Windows & Android).

In case of a multiplayer scene, the interactions and behaviors should be integrated with specific components that allow scene sharing with multiple players. Every interaction component should be integrated with its corresponding Network component to share the behavior-related events to all players in the scene.

The list of all the behaviors and its Network integrations is the following:

Standard ComponentNetwork Component
WEAVR ObjectWEAVR Object Network
ConnectableConnectable Network
ExecutableExecutable Network
DoorDoor Network
Push ButtonPush Button Network
SwitchSwitch Network
Screwable ObjectScrewable Object Network
Screwable HoleScrewable Hole Network
KnobKnob Network

Furthermore, some generic components have a network version, namely:

  • LED FeedNetwork LED Feed