Get Derived Classes

Hello all -

I am wondering if there is a simple way of getting all derived classes from a class in blueprint. I am aware there is a C++ implementation of this, but surprised to find that there doesn’t appear to be a Blueprint node which can, from a class reference, get all derived classes.

This seems like it should be a simple/routine functionality. Any suggestions for a simple way to achieve this?

I thought about using an array to store them but this is a very clunky workaround for something that should be a simple operation. The other alternative I can find is to program a custom node, but again, why are we then recompiling the editor to do this basic operation

Cheers

Bumping this up…

This is not trivial, see my answer here

I’ve stumbled upon a node which actually makes this possible in blueprints though, Tags filtering is just not present in the default ARFilter node.

Here is a prototype implementation that will recursively fetch child blueprint classes until it doesn’t find any new ones anymore.
Just note the input parameter is by-ref. Other variables are locals.

Usage is a bit tedious, you need to pass in a full string reference like so :

Also note that it won’t fetch native classes, those are not assets. I’m not aware of any blueprint way to find native subclasses. C++ is much more fit for this.