Presentation - Capi-Metaverse/Template GitHub Wiki

Table of Contents

Introduction

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.

Features

  • Let users upload a ppt or pptx file on a Unity Scene.

  • Users can move between slides

How to start

  1. Add the prefab to the scene.

  2. Adjust the Box Collider of the prefab.

  3. Add to your character the player tag.

  4. Add to your camera the main camera tag.

  5. Call in your script SetRunner from RPC_Presentation if it’s online.

  6. Call in your script SetCurrentPlayer from PresentationZonePhoton if it’s online.

  7. Play the scene.

Prefab components

  • 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.

⚠️ **GitHub.com Fallback** ⚠️