gaopinghuang0 / ARPersistence-RealityKit

13 stars 2 forks source link

loadExperience bug #2

Open xduwzh opened 3 months ago

xduwzh commented 3 months ago

Hi. When I test the app, I found that the saved world map will not be loaded correctly, instead it will load the data that was recorded last time I open this app. So it means if I wanna load the map I just saved, I have to close the app and open it again. Seems like it has something to do with the storedData in the saveExperience function. Is there any way to fix this? Than you.

xduwzh commented 3 months ago

Issue fixed. In the loadExperience func, use storedData.data(forKey: mapKey) instead of worldMapData.