Forum rules - please read before posting.

Odd behaviour after loading a scene [solved]

edited July 2022 in Technical Q&A

AC 1.75.4 / Unity 2021.1.16f

I have a scene called "Town" with a Player, the values of the player script are filled (eg mecanim parameter speed and istalking are both working, since I can move my character).
I load another scene though a trigger, that scene doesn't have my player but it has all the AC folders. Inside that scene, I load "Town" again.
When I load "Town" again, my character is still there, his name is still in the player editor, but not the the mecanim parameters for speed and istaking are missing nor the Movement settings (walk speed scale is 0 instead of 1.5 for instance).

Any idea what could cause this and how to fix it?

Thank you.

Edit:
Apparently this error does not appear if I set the Player prefab to my player prefab.
Sadly I cannot do this with my game for I rely on a minimap script which needs to access the "Player" in the scene.

Edit 2:
I was not aware that if the player was present, it would not use the prefab so everything is working now. Sorry.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.