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"

External Access of Custom Struct Arrays Causes Null References on Engine Load

Hey everyone, So I encountered this about a dozen times before I worked out what was causing it: Whenever we were loading the Editor/Game references for even basic classes would be set to null. It turns out that this was happening to classes that were referenced in custom struct arrays that were being accessed from a blueprint without a helper function. Yeah. That ol' chestnut. Initially we were able to get around this by setting bDeferDependencyLoads to false in BaseEngine.ini but then we continued to have problems and this seems to have solved it.

For an example: We had a team info that stored classes for units and their respective costs. If the game mode directly accessed it's array of team infos and ran checks on the array units referenced in that spawn cost check would have their mesh and anim blueprint references set to null on engine load. When the team info blueprint has the logic in it for selecting the unit, given a cost, and we call that from the game mode the characters don't have any issues.

Anyway, I've seen a few people having this issue, or similar, so I thought I'd post the work around.

Product Version: UE 4.7
Tags:
more ▼

asked Jun 07 '15 at 11:26 AM in Using UE4

avatar image

HighlySpammable
101 2 3 7

(comments are locked)
10|2000 characters needed characters left

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