Does unity support eventargs?

Something like this: EventArgs Class (System) | Microsoft Learn

Googling doesn’t show anything about it.

Yes-ish.

EventArgs works, but as far as I know it’s not really related to Unity, in that Unity uses delegates instead of events for its subscribable events (at least, I code like it does… maybe they just work the same way). You can make your own event-args things without any worry though.

public delegate void EventPrototype(System.EventArgs args);
public event EventPrototype onHit;

public void Slap() {
  if ( null != onHit ) onHit(new System.EventArgs());
}

Add : using System;

So I was just watching this one tutorial “C# events and delegates made simple”, its called. The instructor uses (object source, EventArgs args). Naturally I wanted to use it too. But unity wasn’t budging in. Eventually I noticed that he also has at the very top of his file “using System”. I’m only that far in the experimentation process but adding “using System” allowed me to add […] EventArgs args to my delegate signature.
Hope that helps