AwaitAnySpaceBeginLoading (Unity)

- Declaration

public static void AwaitAnySpaceBeginLoading(Action<string> onBeginLoading)

- Description

Triggers when you begin attempting to join a space, returning the ID of the space being joined.

- Sample

using CavrnusSdk.API; using UnityEngine; public class SpaceLoadingUIManager : MonoBehaviour { public GameObject SpaceLoadingIndicatorPrefab; void Start() { CavrnusFunctionLibrary.AwaitAnySpaceBeginLoading(spaceId => { var loadingUi = GameObject.Instantiate(SpaceLoadingIndicatorPrefab); CavrnusFunctionLibrary.AwaitAnySpaceConnection(spaceConn => GameObject.Destroy(loadingUi)); }); } }