Presentation - Capi-Metaverse/Template GitHub Wiki
This package contains two prefabs, one dedicated to single player mode and the other to multiplayer mode.
The general structure of this prefab consists of a canvas panel where the presentations are uploaded, a camera and a presentation zone collider that are focused in the canvas panel and a small interface in the scene to let the user upload presentations and move between slides.
-
Add the prefab to the scene.
-
Adjust the Box Collider of the prefab.
-
Add to your character the player tag.
-
Add to your camera the main camera tag.
-
Call in your script SetRunner from RPC_Presentation if it’s online.
-
Call in your script SetCurrentPlayer from PresentationZonePhoton if it’s online.
-
Play the scene.
-
Box Collider in PresentationZone: This collider is used to specify the zone where the user will be allowed to switch to drawing mode. It can be moved and its dimensions can be modified.
-
Presentation Zone && PresentationZonePhoton: These are the main scripts of the component and control all collision zone operation and user input for mode change. The Photon one is specific to multiplayer.
-
RPCPresentation: This script works with the Photon RPCs to send slide information to the other users.
-
Presentation Objects: This object contains the main canvas renderer and the buttons to upload presentations and move between them.
-
Presentation UI: This canvas contain the UI related to the presentation.