HoloFair SDK V4
  • 🛠️Welcome to HoloFair SDK
  • Development
    • ⚙️Initial Setup
      • Start Here
      • Setup Addressables
      • Updating HoloFair SDK in an existing project
      • Scenes & Layers
      • Portals
      • WorldSettings
      • Build & Upload Addressables
        • CloudFront
        • BunnyCDN
      • Pubish & Test your Metaverse
    • ⭐Features
      • Text
      • Respawn
      • Link
      • Image
      • Video
      • TalkZone
      • Emote
      • Timer
      • Add Force
      • Animated Objects
      • Special/VIP content
      • Localization
      • Timeline
      • Focus Point
      • REST API Integration
        • Serialized Variables
        • Smart String
      • Interaction Events
        • Use Cases for Interaction Events
      • Editing Values
      • Control Locker
    • ‼️Important
      • Format of 3D Assets
      • 🆔GUIDs
  • Guides
    • Custom User Authentication
Powered by GitBook
On this page
  1. Development
  2. Features

Respawn

Teleports the player to a point

PreviousTextNextLink

Last updated 2 years ago

In order to teleport the user to a desired location within the Metaverse, you'll need to use RespawnView.

Create an empty GameObject and rename it appropriately. Attatch a RespawnView component and a GuidComponent on to it. Create an empty child object under it and name it "Respawn Point". Assign this child object into RespawnView's Respawn Point field.

The value field determines the radius of the random respawn.

To respawn the player using this View, call RespawnView.Respawn() using an event handler, such as OnTriggerHandler or OnClickHandler.

⭐
For better understanding, see .
Interaction Events