Switch Area

Scene
Lado del servidor
Disponible en PC y móvil

Switch the player to the specified location of the specified scene. Unloaded scenes will be automatically loaded, and loaded scenes will not be automatically unloaded.

Declaración

func SwitchArea(target entity<Player>, sceneID string, position Vector3, forward Vector3)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Player Player
SceneID String The scene ID to load
Position Vector3 The player’s position in the new scene
Forward Vector3 The player’s orientation in the new scene