x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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:

alt text

Whereas components added directly to the blueprint look like this:

alt text

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?

Product Version: UE 4.11
Tags:
more ▼

asked Apr 13 '16 at 09:14 AM in C++ Programming

avatar image

Ungalyant
102 11 16 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello Ungalyant,

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.

more ▼

answered Apr 15 '16 at 08:48 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question