Event trigger, function not present.

Hye everyone,
I have two questions about event triggers.
I have a “UIInventoryItem” script that is supposed to have functions that are returned by the event trigger. But they don’t appear in the list. Do you know why?

public void OnEndDrag(PointerEventData eventData)
    {
        OnItemEndDrag?.Invoke(this);
    }

My second question would be if the event trigger is still useful with the new input system?

Good evening,

UnityEvents only support a few function signatures. They are limited to functions that return void and take a single parameter (or none), and that parameter must be a primitive type such as bool, int, float, or UnityObject.

You can’t see it in the list because PointerEventData is too complex. I suggest making a new function: void OnEndDrag() { OnItemEndDrag?.Invoke(this); }.