Home > Net >  Unity scene transition error, no idea how to fix or what to do
Unity scene transition error, no idea how to fix or what to do

Time:12-11

On line 16 there is an error which I don't understand how to fix. I am still pretty new to unity so if I could get a clear descriptionenter image description here that would be great.

enter image description here

CodePudding user response:

Have you loaded the scene inside the build Settings?

CodePudding user response:

From the code you shared, it looks like you're assigning:

playerStorage.initialValue = playerPosition;

BUT

playerPosition is never assigned to. It's basically saying: "I know you're telling me to reference this variable but it doesn't exist yet."

Try giving playerPosition a value before line 16 and see if you can work from there.

  • Related