Why Can't I see this UnityEvent in the inspector?

Why can’t I see

public UER UnityEventResponse;

In the editor?

CardData can be any data type you want :slight_smile:

Base Game Listener

 public abstract class GameEventListener<T, GE, UER> : MonoBehaviour
            where GE : GameEvent<T>
            where UER : UnityEvent<T>
    {
        public GE GameEvent;
       public UER UnityEventResponse;

Base Game Event

public abstract class GameEvent<T> : ScriptableObject
{
    public event Action<T> EventListeners = delegate { };

    public void Raise(T item)
    {
        EventListeners(item);
    }
}

Specific Listener Implementation

public class CardDataEventListener : GameEventListener<CardData, CardDataEvent, UnityCardDataEvent> {}

Specific Game Event Implementation

[CreateAssetMenu(fileName = "New CardData Event", menuName = "Event")]
public class CardDataEvent : GameEvent<CardData> {}

Unity Event Type Implementation

public class UnityCardDataEvent : UnityEvent<CardData> {}

This is ticking me off a little :^)

Found the issue…

For anyone with a similar issue, I had to add [System.Serializable] to the UnityCardDataEvent class