- Home /
Odd change in behaviour after I rearranged project files
I've been building a save system for my RPG game which was working fine until I rearranged the files in my project to tidy up a bit.
What happens is I load in the players position, rotation, inventory items and skills. Everything seems to be working apart from the player position. As the player will be moved to the coordinates specified within the file but then immediately after moved somewhere else.
I've checked that I'm not moving the player elsewhere in my files and this was all working before until I rearranged my project folder.
I've got a video here too that will show the behavior i'm talking about:
https://www.youtube.com/watch?v=OLK_k7G0QmY&feature=youtu.be
Have any of you experienced anything like this?
Edit:
Okay, so I cleared the navmesh and it seems to have stopped the problem from happening. Is the agent trying to jump to somewhere on the navmesh by itself?
Edit two:
I solved the problem. For anyone maybe having the same problem what I did was disable the navmeshagent before the data was loaded in and then re-enabled it once the data was loaded and it stopped the issue. I don't know why it happened but I'm going to look into it.
Your answer
![](https://koobas.hobune.stream/wayback/20220612094551im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to serialize parameters from JSON? 1 Answer
How do I go about deserializing a json array? 3 Answers
Problems with Exported Game 1 Answer
C# class to JSON 1 Answer
Json.NET Serialization - Platform Not Supported Error 0 Answers