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"

Component doesn't appear in editor details panel

Hi there,

I have been trying to create a component inside the PostEditChangeProperty for a Spawner I'm making. The problem is that I just create it as normal

 UMyBoxComponent* Comp = NewObject<UMyBoxComponent>(this, UMyBoxComponent::StaticClass(), TEXT("BOX_COMPONENT"));
     Comp->bEditableWhenInherited = true;

For some reason the details panel doesn't show the component even though I am 100% sure is created. (I have printed the child actors of RootComponent).

Need Help from anyone who have been through the same issue.

Note: A friend told me that my code works in other versions like 4.19, but I need this to be working on 4.21.

Product Version: UE 4.21
more ▼

asked Apr 23 '19 at 07:19 PM in C++ Programming

avatar image

1 1

avatar image Lardo Deepdelver Apr 24 '19 at 11:44 AM

is there a specific reason that you have to create the component in the PostEditChangeProperty and not in the constructor?

avatar image luis9303 Apr 26 '19 at 12:49 PM

Hello, sorry for the late response. Yes, I want to create a tool for the game designers that allows them to select the number of boxes that will be created, all of this works in the details panel. In this panel they have an int variable which should let them see this 3 boxes created as childs of RootComponent and of course allow them to move and use them on the map.

Any clue would be so well received.

avatar image phil_me_up Apr 26 '19 at 04:43 PM

Would it be simpler just to ask the designers to use the 'AddComponent' menu rather than trying to build this into PostEditChangeProperty. I can see what you're working towards but you might end up with more issues as a result of this (in terms of managing the boxes and not adding / removing in error)

avatar image luis9303 Apr 30 '19 at 02:49 PM

Sure! That would be the last solution, but as a programmer and tool creator I want to make their life easier and easier!. I have found a provisional solution for it, but I keep trying to finish this tool which would be great for the future. Thanks for your comment :)

(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