Forum rules - please read before posting.

Error when load game: AC.Char.Teleport - NullReferenceException AC v1.75.2

I just updated Unity to the latest version 2021.2.19f1c1 and also Adventure Creator v1.75.2, everything is working perfectly, except loading that gives me this error.

NullReferenceException: Object reference not set to an instance of an object
AC.Char.Teleport (UnityEngine.Vector3 _position, System.Boolean recalculateActivePathFind) (at Assets/AdventureCreator/Scripts/Character/Char.cs:1542)
AC.SceneChanger+d__43.MoveNext () (at Assets/AdventureCreator/Scripts/Game engine/SceneChanger.cs:648)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <6f7cbd2409704976852490551564c873>:0)

Where could I start looking for the problem to solve it. Thank you very much!


  • Thanks for the bug report. It looks like this'll occur when using a non-AC loading scene - is this the case?

    To fix, open up AC's Char script and replace line 1542:

    KickStarter.eventManager.Call_OnCharacterTeleport (this, _position, GetTargetRotation ());

    if (KickStarter.eventManager) KickStarter.eventManager.Call_OnCharacterTeleport (this, _position, GetTargetRotation ());

  • It work! thanks to you!

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.