How to get class defaults from base class?

I want to get some BP class variables before I create the object of this BP in the Level. I know that there is a function for that: GetClassDefaults()

This works well for variables defined in the specified class, but it has no access to any variables defined in the base class. I.e. BP_A defines float x. BP_B inherits from BP_A. Then I call GetClassDefaults(BP_B) and I want to access float x.

Is it possible with Blueprints?

It does have access, the inherited properties are hidden by default, though:

299638-annotation-2020-04-13-122628.png

2 Likes

btw, if you see some craziness:

299639-annotation-2020-04-13-122839.png

…just compile and the class should resolve ok.