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"

Actor Component specified in UPROPERTY not appearing in editor

 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Game")
     UArrowComponent* fireHelper;

I have specified a uproperty like this in a class called ATurret(derived from aactor)

I have not created subobject for this component in code.

I intend to do this : "In blueprint I create sublass of this, add an arrow component and then reference it through the uproperty "firehelper" "

But the Uproperty does not show up in editor

Product Version: UE 4.14
more ▼

asked Jan 11 '17 at 07:27 AM in C++ Programming

avatar image

5 1 2 5

avatar image emrahgunduz Jan 11 '17 at 07:48 AM

Try EditAnywhere instead of VisibleAnywhere

avatar image asdzxcv Jan 11 '17 at 07:54 AM

did not work

avatar image Tim C ♦♦ STAFF Jan 12 '17 at 05:06 PM

Hi asdzxcv,

Could you clarify what you mean when you say it does not show up in the Editor? Are you wanting to be able to edit the properties of the Arrow Component in the Details panel? If so, you will need to create a default subobject in the code class' constructor.

You can still access the parent class' Arrow Component in the child Blueprint's event graph, though, so you can set all of the properties that way if you need to. Keep in mind that if you add an Arrow Component to the child Blueprint, that Blueprint will now effectively have two Arrow Components.


avatar image asdzxcv Jan 13 '17 at 08:18 AM

I wanted to assign this component to arrow added in child class through detail panel I guess it cant be done Creating a subobject in base class is easier

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

1 answer: sort voted first

Hi asdzxcv,

The Editor does not have a way for you to choose a specific pre-existing Component to use as a Component in a Blueprint. So, for example, you would not be able to add an Arrow Component to a Blueprint and tell the Blueprint that you want to use the Arrow Component in the parent class for the newly created component. However, as long as the Component in the parent class is public, the child Blueprint will be able to access it so there should be no need to add the Component again in the child Blueprint. That doesn't mean that there would never be a situation where you would want to add the Component a second time.


more ▼

answered Jan 13 '17 at 02:54 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