How to auto expand C++ generated components

Hey Guys,

This is an issue that’s bothered me for a long time, but I’ve finally decided to look into what I can do about it. Every time I make a component in a C++ class, and derive a blueprint from that class the components show up in this manner:

86590-autoexpandcomponents1.png

Whereas components added directly to the blueprint look like this:

86591-autoexpandcomponents2.png

It’s only a relatively small issue, but it just gets quite frustrating, I don’t want to have to click a drop down on a component every time I want to edit it. I’ve googled around a bit, thinking that UCLASS(AutoExpandCategories) or UPROPERTY(SimpleDisplay) thinking they might work, but no luck. Any answers?

Hello ,

To make the component show up the way that you would like it to, it would be best to use this list of specifiers for the UPROPERTY declaration.

UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = "MyMesh", meta = (AllowPrivateAccess = "true"))

This seems to be a behavior of EditAnywhere, but using VisibleAnywhere along with AllowPrivateAccess (which will allow you to still edit) should yield the results you want.