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"

Runtime deleting components crash because of names

Hello everyone,

I'm right now developing an actor class that, when spawned in the editor creates a bunch of components name "Component_X" attached to itself, being X its index. The property that indicates how many of these components are to be created can be changed in the editor using the UPROPERTY stuff.

When the number is changed to a lower one, the components are deleted using:


This works fine, the components disappear both in the screen and in the actor's details.

Problem comes when the number is changed to a higher one BEFORE it was changed to a lower one. Unreal Editor crashes and I'm pretty sure it's because of the names. I debugged this: I change the number to a lower one (and thus, destroy some of the components), then if I try to manually create through the editor a component with the name "Component_X", being X the number of a component that existed before deleting, it says that there's already a component with that name.

That makes me think that something is not working during the destruction. Is it a garbage collector trouble?


Product Version: UE 4.10
more ▼

asked Feb 28 '16 at 10:23 PM in C++ Programming

avatar image

28 2 4 6

(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