Mechabit
Mechabit•3mo ago

Make OnModelReplaced fire after connecting to a room

This has caught me twice and it might be intended behaviour but it feels like a bug. When I want to store room time in a model when isFreshModel is true for a scene view I have to make a coroutine wait for room != null and then I forget the next project I start cos it's counterintuitive. If room is supposed to be not null when OnModelReplaced is fired then this is a bug report 🙂
2 Replies
NormalMark
NormalMark•3mo ago
I'll look into it đź‘Ť
maxweisel
maxweisel•3mo ago
this is somewhat intentional fwiw. if you’re the first client to join a room, we just put the scene view models into that room’s datastore so that way state doesn’t reset or blip when you connect

Did you find this page helpful?