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"

Actor not visible but blueprint is.

Hi,

I'm trying to implement an arrow to point at a specific direction. For that, I extended AActor and declared the UArrowComponent:

 UPROPERTY(VisibleDefaultsOnly, Category = Navigation)
 TSubobjectPtr<class UArrowComponent> ArrowComponent;

I also declared a member in my character to manage the arrow (and set the default to my AMyArrow in characters blueprint):

 UPROPERTY(EditDefaultsOnly, Category = Navigation)
 TSubclassOf<class AMyArrow> MyArrowClass;

When I try to spawn the arrow, the object appears in the outliner, but is not visible in the scene.

 World->SpawnActor<AMyArrow>(ANaviArrow::StaticClass(), SpawnLocation, SpawnRotation);

When I create a blueprint of AMyArrow and drag&drop it, everything is fine.

What am I missing?

UPDATE

I fixed my problem. In my character blueprint there was no class assigned to MyArrowClass. To do this, I had to change the category because it was not visible in defaults (I guess "Navigation" is some kind of reserved by UE). Then I was able to choose a blueprint for MyArrowClass.

Product Version: Not Selected
Tags:
more ▼

asked Oct 28 '14 at 02:07 PM in C++ Programming

avatar image

asawatzki
1 1 1 2

avatar image Shadowriver Oct 28 '14 at 03:15 PM

By guess is something wrong with UArrowComponent or other component reponsceble for physical look

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

0 answers: sort voted first
Be the first one to answer this question
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