Respawn

Teleports the player to a point

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.

Last updated