ExitSpace

- Declaration

public static void ExitSpace(this CavrnusSpaceConnection spaceConn)

- Description

Disconnects you from a given space. You will stop receiving property updates, and lose user & voice connections. Note that you will remain Authenticated.

- Sample

using CavrnusSdk.API; using UnityEngine; public class ExitSpaceButton : MonoBehaviour { private CavrnusSpaceConnection spaceConn; void Start() { CavrnusFunctionLibrary.AwaitAnySpaceConnection(spaceConn => this.spaceConn = spaceConn); } public void ExecuteExitSpace() { if(spaceConn == null) { Debug.LogError("Not yet in a space that can be exited"); return; } spaceConn.ExitSpace(); } }