When I add an Event Trigger type (Pointer Enter, Pointer Exit, etc) for images or text labels using a callback such as:
public void BeginHover(BaseEventData data)
{
Debug.Log(data.selectedObject);
}
The selectedObject property is always nil, and not the UI element. With buttons, the selectedObject is the button.
Is there anyway that I can use one callback with multiple UI elements? I’m looking to retrieve the image and label objects that the pointer is hovering over.
Thanks!