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"

Spawning Static Mesh from Blutiltiy and "Set Mesh"

I've created a function that I'm calling through a custom event that I trigger through the Blutilities drop down list and "Run" button. I simply want the blutipility to spawn a static mesh actor and set a specific mesh.

Here is how that looks: alt text

This does seem to work, partially. The static mesh actor is spawned but the static mesh does not seem to be set at all. It's empty. The return value is "false". I can then manually select the staticmesh actor and set a mesh manually, so there is nothing wrong with it. It just seems like the "Set Static Mesh" is failing and I don't know what I'm missing.

Thanks!

Product Version: UE 4.10
Tags:
more ▼

asked Jan 26 '16 at 01:52 PM in Blueprint Scripting

avatar image

Norman3D
96 2 4 9

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

1 answer: sort voted first

Hey Norman,

most likely the problem here is that you are trying to set mesh on a Static mobility static mesh. Currently they must be movable for this to work. I have complained about that to various people but turns out that is a whole can of worms to allow modifying the mesh of non movable items during construction.

I worked around this in my case by setting my container BP to movable before running all my scripts and then remembering to set it back to static. That should work fine, other than being tedious and the chance of forgetting to set them to static afterwards. I may have done that once or twice and then got the weekend emails of "why does the map say lighting needs to be rebuilt?"

more ▼

answered Jan 26 '16 at 04:51 PM

avatar image

RyanB STAFF
2.1k 56 24 118

(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