Download

TSubclassOf<T> support for Interface types

Title pretty much says it all.

It would be incredibly valuable to be able to enforce interface constraints on types rather than just classes. I think this would greatly increase the use-cases for interfaces.

I realize there is workarounds to get this functionality like using TSubclassOf<AActor> etc, and checking for the interface at runtime but the syntactic sugar of using TSubclassOf<T> or an equal version specially for interfaces would be awesome.

I also think that feature would be awesome. Sometimes you can’t use inheritance to benefit from TSubclassOf<>.

Since Interface now is officially a type then that sounds like nice idea, +1

I recently came across this hurdle and had to re-write around the limitation, I’ll add my voice to this!