Where is Unity SessionState stored?

I came across Unity SessionState recently and it seems to fit my use case perfectly. However, I can’t find documentation that describes where the key-value pairs in SessionState are actually stored. Are they simply persisted in memory through the editor, or are they stored on disk in some sort of local registry like PlayerPrefs?

I’m assuming that they’re stored in memory since they clear on exit, but want to make sure. Thanks.

Yes, they are stored in memory. I believe we store them in the c++ side so they can survive a domain reload.

1 Like