Blueprint's "Get Class Defaults" node not showing everything

Hi,I’m trying to use the new blueprint node “Get Class Defaults” But it seem to not show all the variable defined in my c++ class.

I have multiple blueprint character extenting a c++ class which containt a UTexture2D node :

UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
UTexture2D *characterIcon;

but it won’t appear inside the BP node, I can access it if I spawn the blueprint, but not as a default value.

Thanks!

Exact same problem :/. Guess it is a bug?

Hello Epixerion,

I’ve looked into this issue that you are experiencing with the “Get Class Defaults” node, and I was able to reproduce your problem. It seems to be that only actor-derived objects (basically anything prefaced with a “U”) don’t appear on the node. It’s not completely clear whether this is by design, or it is a bug, but I have gone ahead and entered a bug report, UE-21386.

Have a great day,

Sean Flint

Thanks Flint, really looking ahead for this functionality to work!

Hello, I though waiting for the 4.10 will fix the problem, and its look like nothing changed since, why can’t we get UTexture* to be shown on the Get Class Defaults, but an UTexture* encapsulated inside an custom struct give a way to go around the problem ?

http://droplr.epixerion.com/14LnL/35ucxfHi.jpg

is it still a unfixed bug or it’s made on purpose ?

Hello,

This behavior has been clarified to be by design. Take a look at the accepted answer of this post: New 4.9 Get Class Defaults node doesn't have all the variables - Programming & Scripting - Unreal Engine Forums
This explains the reasoning behind the node’s behavior.