Forum rules - please read before posting.

Restart Game Loading Screen Error

Added a Loading Scene (Screen) to my project.

Using Engine: End game (RestartGame) to take player back to Scene 0 (Title Screen) when they select "Quit" option from Pause Menu. 

Screen goes black and I get the following error:

NullReferenceException: Object reference not set to an instance of an object.

Error traces back to Line: 105 in SceneChanger.cs:

KickStarter.player.transform.position += new Vector3 (0f, -10000f, 0f);

When I uncheck the Loading Scene option I don't get this error and everything plays fine.

MK

Comments

  • Thanks for the bug report.
  • No problem. The Loading Scene is a great feature.
  • Can't recreate this - please update to the latest and re-try it.  Are you using player prefabs and/or player switching?
  • I'll update to latest and re-try.

    Yes, using player prefab, but no player switching.

    Thanks
  • Wasn't updated to latest version. Loading Scene/Restart Game issue solved.

    Thx.
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.