Okay, there are two issues here:
- You’re opening a local Realm rather than a synchronized one - in
OnEnable
, you’re calling_realm = Realm.GetInstance()
, which will just store data locally on your device. I’m assuming this is why you’re not seeing the data ever get uploaded to the server. You can refer to the docs for how to authenticate a user and open a synchronized Realm. - The game pausing issue - I don’t see anything obvious that would cause your game to pause. Based on some reading, looks like either
Debug.Break()
orEditorApplication.isPaused = true
will cause the game to pause. Can you grep your code and see if you accidentally have anything like that?
If you can send us a repro for the pausing issue - either a small project that reproduces it or your project (we can send you a private upload link if you choose that path), then we’d be happy to take over and debug that further.