Hello everyone,
in the performance reporting tool I noticed a very strange exception that only a couple of users encounter.
The trace is:
EventPanelItem.GoToEventLocation ()
UnityEngine.Events.UnityEvent.Invoke ()
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, Boolean pressed, Boolean released)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents ()
So what’s happening here is, if a new event is triggered at the end of the turn the event manager instantiates a new ui prefab (parent with script, child = button) and then hides it until the player revisits the map.
In this case a user then clicks on the child button element of that newly instantiated object which calls GoToEventLocation() (OnClick event set through the inspector).The method only forwards a Vector3 to the camera.
This error sounds like as if either the parent or its script is missing when the OnClick Event fires which should be impossible because of the nature of the prefab.
I honestly don’t know what I should do here, …help!