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"

Can't destroy Added Spline Mesh Component

I am adding a Spline mesh Component at runtime in the Level Blueprint. I am trying to delete it after 2 seconds but it doesn't seem to work.

(i create the mesh inside my spline BP, then attach it to the root scene). I am using the return value of "Add Mesh Component'' as the reference target of the DestroyComponent.

alt text

Product Version: UE 4.10
Tags:
more ▼

asked Feb 15 '16 at 03:38 PM in Blueprint Scripting

avatar image

sidora
3 4 4 6

avatar image jayice Feb 15 '16 at 03:45 PM

Give detaching the Splmc, from it's parent, then doing a destroy, on the component. No guarantees, but that's how I would first start.

avatar image sidora Feb 15 '16 at 06:53 PM

Detaching before Destroy didn't fix the issue.

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

1 answer: sort voted first

Ok i figured it out. I needed to make a custom event and a placeholder Variable(Spline Mesh Type) inside the target blueprint. Then, in the level BP, set the mesh to the variable, then call the event.

more ▼

answered Feb 15 '16 at 07:51 PM

avatar image

sidora
3 4 4 6

(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