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"

Spawn a random static mesh from an a arrays

Hi all, I'd like to simply spawn a static mesh with physics, from an array of static meshes.

I'm doing this through a blueprint.

How is this done?

Product Version: Not Selected
Tags:
more ▼

asked Feb 17 '15 at 08:59 PM in Blueprint Scripting

avatar image

ShrewGlue
444 99 84 108

avatar image Jacky Feb 17 '15 at 09:04 PM

Check out the construction script in Content Examples project > Blueprints_Advanced > 1.1 Randomly scattered meshes blueprint.

avatar image haruna Jul 04 '16 at 01:06 AM

If you have a lot of static meshes(like 100s, maybe even 1000s) you should look into data tables. I figured out how to set static meshes via data tables here: https://answers.unrealengine.com/questions/393681/set-a-static-mesh-with-a-data-table.html

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

1 answer: sort voted first

I figured it out, here's what I have:

alt text

capture.png (152.2 kB)
more ▼

answered Feb 17 '15 at 09:24 PM

avatar image

ShrewGlue
444 99 84 108

avatar image spyro Mar 25 '15 at 02:34 PM

How did you fill the static mesh list? Is this an 'static mesh actor' array? For me it says, 'editing this value is not allowed'. It doesn't work via 'make array' either (can set individual values).

avatar image alperenakyuz Mar 25 '15 at 07:12 PM

Here you go:

alt text

blueprint.png (177.7 kB)
(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