gubebra
gubebra2mo ago

How to get normcore connected region?

How to get normcore connected region?
2 Replies
kapa.ai
kapa.ai2mo ago
Hi @gubebra. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To get the connected region in Normcore, you can use the region property of the Realtime component. This property provides metadata about the current room server region. Here's how you can access it:
// Get the region metadata from the Realtime component
RegionMetadata? regionInfo = realtime.region;

// Check if region info is available and use it
if (regionInfo.HasValue) {
Debug.Log($"Connected to region: {regionInfo.Value}");
}
// Get the region metadata from the Realtime component
RegionMetadata? regionInfo = realtime.region;

// Check if region info is available and use it
if (regionInfo.HasValue) {
Debug.Log($"Connected to region: {regionInfo.Value}");
}
The region property returns a RegionMetadata? object (nullable type) that contains information about the region where your room server is hosted Realtime Reference. Normcore automatically determines the ideal region to host your room based on the players connecting, as mentioned in the Unity Client Architecture documentation. The region selection is part of Normcore's cloud infrastructure, which consists of matchers, clusters, and rooms distributed across multiple regions to ensure low latency connections Cloud Infrastructure. If you need to limit the range of hosts or regions for corporate networks or specific deployment needs, you might want to consider Normcore Private, which allows for more control over deployment regions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@599054560270483456> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?