How to determine when Saver has been applied?
Posted: Sun May 14, 2023 5:56 am
Hi! I'm building my Load / Save system using the fantastic SaveSystem components. I have one such component, where I want to run some code when I'm confident that the saver has been applied. For example, if I have a "PositionSaver" on a GameObject, I want to be able to refer to the GameObject transform and be confident that the position and rotation reflect that of the game save.
I've tried hooking into SaveSystem.sceneLoaded and SaveSystem.loadEnded, but the transform doesn't appear to have been updated at the point those events are triggered.
Am I on the right track? Is there another event that I can hook into for this purpose?
Many thanks again!
I've tried hooking into SaveSystem.sceneLoaded and SaveSystem.loadEnded, but the transform doesn't appear to have been updated at the point those events are triggered.
Am I on the right track? Is there another event that I can hook into for this purpose?
Many thanks again!