Hey Chris,
I'm encountering an error that's causing the player to freeze. The issue occurs when I interact with a door hotspot that teleports the player to another area (within the same scene). This functionality used to work correctly, but recently it started freezing the player upon interaction. Any idea why this is happening?
https://prnt.sc/2eg6Gsd6TSc6
NullReferenceException: Object reference not set to an instance of an object AC.Highlight.UpdateMaterials () (at Assets/AdventureCreator/Scripts/Object/Highlight.cs:366) AC.Highlight.HighlightOffInstant () (at Assets/AdventureCreator/Scripts/Object/Highlight.cs:251) AC.Highlight.HighlightOff () (at Assets/AdventureCreator/Scripts/Object/Highlight.cs:220) AC.DetectHotspots.ForceRemoveHotspot (AC.Hotspot _hotspot) (at Assets/AdventureCreator/Scripts/Object/DetectHotspots.cs:296) AC.Hotspot.TurnOff (System.Boolean manualSet) (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:779) AC.Hotspot.TurnOff () (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:756) AC.ActionHotspotEnable.DoChange (AC.Hotspot _hotspot) (at Assets/AdventureCreator/Scripts/Actions/ActionHotspotEnable.cs:79) AC.ActionHotspotEnable.Run () (at Assets/AdventureCreator/Scripts/Actions/ActionHotspotEnable.cs:53) AC.ActionList+<RunAction>d__47.MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:470) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:412) AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:617) AC.ActionList:EndAction(Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:576) AC.<RunAction>d__47:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:540) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:412) AC.ActionList:ProcessActionEnd(ActionEnd, Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:607)
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It seems that the issue won't happen when the global variable "PlayerIsRunning_loop" is set to True. It only occurs when I interact with the hotspot and the variable is set to false.
Is there a way to zoom in your screenshot? I can't make out the Actions involved.
What are your AC/Unity versions?
It looks like an issue related to the Highlight component of the Hotspot you're disabling.
I believe this error may have been caused by Unity 6, as it didn’t appear the following day. Thanks for looking into it, Chris.