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"

How do I delete meshes?

I am using "add static mesh" and "set static mesh" to spawn few meshes. How do I delete some of them inside the same bluperint without destroying the whole blueprint?

Product Version: Not Selected
more ▼

asked Jul 19 '14 at 04:37 PM in Blueprint Scripting

avatar image

1 1 2 3

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

2 answers: sort voted first

Destroy component from a reference to the static mesh you want to destroy.

more ▼

answered Jul 19 '14 at 07:52 PM

avatar image

31 1 1 3

avatar image worrytron Feb 15 '16 at 02:07 PM

This worked for me -- thanks

For future generations, as I created each Static Mesh Component, I placed them into an Static Mesh Component Array. When I was ready to destroy them, I looped over that array. Worked like a charm

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

if you have added to many mesh components to your blueprint just go to the components tab in the blueprint and right click on the ones you don't want and select delete.

more ▼

answered Jul 19 '14 at 05:13 PM

avatar image

1.2k 51 24 51

avatar image Killa_ Jul 19 '14 at 07:06 PM

I mean via blueprint scripting.

avatar image DJMidKnight Jul 19 '14 at 07:16 PM

Set Hidden (set True -checked)and Enable Collision(set to false - unchecked) is the quick way

avatar image Killa_ Jul 20 '14 at 07:58 AM

Wont it overload cpu if I will spawn many meshes (about 300) and then toggle some of them? Btw I'm doing that on mobiles.

(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