switch_device.ClearPersistenceData() doesn't set the original state properly

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Assets

Summary

From what I understood, this function only rolls back the current session, it would make sense to me that the default state of the switch would be set again but it doesn’t

If the default state of the switch is OFF and when you connect to the game it’s ON, after calling the function, the switch will stay ON for that player, even if you send them back to lobby

I’m guessing other clear persistence functions behave the same way

I was trying to make a save reset feature but I can’t use this, also there’s no way to retrieve the default switch state in Verse which means you need to redo the default state mapping yourself

Steps to Reproduce

Call switch_device.ClearPersistenceData(:agent)

Expected Result

The switch should be reset to its default state, otherwise the documentation of the function needs to be improved

Observed Result

The switch stays rolls back to the state the user connected on the map with

Platform(s)

PC