prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

allow Interfaces for GetComponent(s) #787

Closed optimo closed 5 months ago

optimo commented 5 months ago

Unity had removed the generic constraint a long time ago, and we can do the same. This way you can fetch a component by its Interface.