Initialization

Initialization

To initialize the Huddle01 Unity SDK, you need to initialize HuddleClient

private HuddleClient _huddleClientInstance;
 
#if !UNITY_WEBGL
[SerializeField]
private DeviceHandler _deviceHandler; // Assign from inspector
#endif
 
[SerializeField]
private string _roomId; // Assign from inspector
 
[SerializeField]
private string _projectId; // Assign from inspector
 
void Init()
{
#if UNITY_WEBGL
    HuddleClient.Instance.InitForWebgl(_projectId, _roomId);
#else
    HuddleClient.Instance.InitForNative(_projectId, _roomId, _deviceHandler);
#endif
    _huddleClientInstance = HuddleClient.Instance;
}
 
Audio/Video Infrastructure designed for developers to empower them to ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2024 Graphene 01, Inc. All Rights Reserved.