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"

UE4 sometimes won't recognize a mesh. Gamebreaking bug

Gamebreaking bug, please help.

I'm making a game with a building system. You build with various pieces, and the pieces look different depending on your race. To do this (picture attached), after placement, the code adds a static mesh component and then sets the static mesh from the blueprint of the piece, which contains soft object static mesh references to all racial pieces of that type.

The problem is: it stops working after I restart the engine. It only works after I mess around a bit by compiling some of the classes, resaving, reimporting, stuff like that.

As you can see (game picture), when it's not working, it recognizes the pieces it wants to add, but then sees the static mesh as a blank empty space (I presume null reference). Why?

The node for "Add Static Mesh Component" says "DO NOT CALL MANUALLY - FOR BLUEPRINT INTERNAL USE ONLY". Is this why? Or is it because I can't use soft object references in this way (that's the only way I can pull them from class defaults)?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 07 '19 at 05:48 AM in Blueprint Scripting

avatar image

Nerdballer Games
35 5 15 16

(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