I’ve been working on integrating the Save System with Opsive's Ultimate Character Controller and ran into an issue I can't seem to resolve. Everything was going smoothly until I tried saving and loading data for my player character’s progress, and now I’m hitting an error that’s preventing the game from loading properly.
Here’s what’s happening: after the player saves the game, the save file gets created without any issues. However, when attempting to load, the game freezes, and I get the following error in the console:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.SaveSystem.Load (System.String) (at Assets/PixelCrushers/SaveSystem.cs:123)
Has anyone run into a similar issue, or does anyone have ideas on what might be causing this? I suspect I might be missing a critical setup step, but I’m not sure where to look next. Any tips or guidance would be much appreciated!
Thanks in advance for your help!