Forum rules - please read before posting.

Issue with triggers

I'm getting the following errors when moving to/from scenes where the player start/exit marker is positioned inside a trigger. In editor only. In build scene changes and triggers are working as they should. The errors may have started when updating to Unity 2022.3.61f1. Using AC 1.75.8. Any ideas what might be causing these?

NullReferenceException: Object reference not set to an instance of an object
AC.StateHandler.get_gameState () (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:519)
AC.AC_Trigger.IsObjectCorrect (UnityEngine.GameObject obToCheck) (at Assets/AdventureCreator/Scripts/Logic/AC_Trigger.cs:337)
AC.AC_Trigger.OnTriggerExit2D (UnityEngine.Collider2D other) (at Assets/AdventureCreator/Scripts/Logic/AC_Trigger.cs:149)

Coroutine couldn't be started because the the game object 'toHouse' is inactive!
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
AC.ActionList:ProcessAction (int) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:406)
AC.ActionList:BeginActionList (int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:373)
AC.ActionList:Interact (int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:274)
AC.ActionList:Interact () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:237)
AC.AC_Trigger:Interact (UnityEngine.GameObject) (at Assets/AdventureCreator/Scripts/Logic/AC_Trigger.cs:331)
AC.AC_Trigger:OnTriggerExit2D (UnityEngine.Collider2D) (at Assets/AdventureCreator/Scripts/Logic/AC_Trigger.cs:151)

Comments

  • It's a very old release. In a backup/duplicate project, try the latest AC - I suspect this has since been fixed.

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.