khoiK
Normal9mo ago
7 replies
khoi

Is didConnectToRoom realtime different from the original?

In this example:
class OfflineModeExample { [SerializeField] private Realtime _realtime; private void Start() { // Notify us when Realtime successfully connects to the room _realtime.didConnectToRoom += DidConnectToRoom; // Connect to "My Room" in offline mode _realtime.Connect("My Room", new Room.ConnectOptions { offlineMode = true }); } private void DidConnectToRoom(Realtime realtime) { if (realtime.room.offlineMode) { Debug.Log($"Connected to room in offline mode!"); } } }

There is _realtime and then in DidConnectToRoom realtime. Why are these different? I am logging both and they give different room.name results...
Was this page helpful?