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"

Components created with NewObject not showing in Actors Components list

Not sure if this is intended but here is my current code and some commented out code of other similar attempts.

https://hastebin.com/hoxohotasi.cpp

The code is checking for when a bool is changed in editor and then uses that bool to determine if I make a StaticMeshComponent or a DestructibleMeshComponent.

The expected behavior is to have the on ecomponent show up in the editor. Instead it only seems to kind of show me what is going on once I place the object in the world as seen with these two pictures one

Checked Is Destructible Prop https://gyazo.com/087796bfb02eef6fcca07c14e4240c72

Unchecked Is Destructible Prop https://gyazo.com/e7ab02b8b0b65ab8641d1b75ef9bc593

As you can see once placed in the world I'm able to give it a static mesh or destructible but I'm trying to achieve this without having to place in the world.

So I'm confused as to why I don't see it in the blueprint component list of the Actor?

Product Version: UE 4.19
Tags:
more ▼

asked Apr 11 '18 at 07:02 PM in C++ Programming

avatar image

Nonlin
109 7 17 18

(comments are locked)
10|2000 characters needed characters left

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