7ark / BetterEvents-Deprecated

A replacement for UnityEvents that are: better
MIT License
135 stars 13 forks source link

[Feature request \ perhaps quick fix?] - Limiting methods found from objects [Generic constraints?] #7

Open kobi666 opened 4 years ago

kobi666 commented 4 years ago

I was wondering if there is a quick way to limit the type of methods \ members found from the event entries. I tried to look into the code to see if I can refactor it somehow for that purpose, and I might, but I think it would be better to do so with your guidance.

Thanks, and awesome tool by the way!

kobi666 commented 4 years ago

I tried to do some tricks to your feature by using its core properties, and was somewhat successful. you have to forgive me for not doing this the GIT way, i'm kinda new to this and to property drawers. the only problems I found were these:

  1. after I select a method with a return value (i added a static return value list in the drawer class) , the object selector and return value selector return to default values
  2. it is not possible to have any return values which are not multicast delegates, which from what i saw means that they are not of "RuntimeType" ? not sure about this. would be really glad if you van take a look and point out what i'm doing wrong:

https://github.com/kobi666/evenBetterEvent

thanks!