AwaitSpaceConnectionByTag (Unity)

public static void AwaitSpaceConnectionByTag(string tag, Action<CavrnusSpaceConnection> onConnected)

- Description

Triggers when you begin attempting to join a space, returning the ID of the space being joined as designated by the corresponding Tag.

 

For more information on Tags, visit Mutli-Space Connections Using Tags

- Sample

using CavrnusSdk.API; using UnityEngine; public class ExampleScript: MonoBehaviour { void Start() { CavrnusFunctionLibrary.AwaitSpaceConnectionByTag("A", spaceConnection => { print("Space A is now connected!"); }); } }

Â