Player position being altered when loading game

Hey All, I recently came back to the saving system I had in my game (It was disabled for a while as it was easier to develop this way) and I am running into an issue where my players position is saved and restored when loading but it is only restored for less than a second and then my player moves back to where I had it in the scene last I was developing.

To debug I added the following:

        private void Start()
        {
            Debug.Log($"Start position {transform.position}");
            StartCoroutine(LateStart(1));
        }

        IEnumerator LateStart(float waitTime)
        {
            yield return new WaitForSeconds(waitTime);
            Debug.Log($"Late Start position {transform.position}");
        }

There captured position is logged in start but by the time LateStart is done the position is already back to where it was when developing last.

Has anyone else encountered an issue like this or similar?
Any ideas on how to continue debugging?

Any help would be great with this.
Thanks in advance

Privacy & Terms