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"

Structure array item disappearing on runtime?

I've defined a structure (string and enum) array in the blueprint itself and filled it with the desired elements but once I hit play, the last element is mysteriously removed and I get 4 elements instead of 5. So then in my menu, only 4 of the 5 items are displayed... Is this a problem with the engine or have I done something terribly wrong?alt text

Product Version: UE 4.19
Tags:
together.png (116.3 kB)
more ▼

asked Mar 09 '19 at 08:25 AM in Blueprint Scripting

avatar image

Rei_Ito
1 1 2

avatar image Rei_Ito Mar 09 '19 at 09:15 AM

Also keeps deleted items on runtime...alt text

empty.png (3.6 kB)
further.png (8.8 kB)
avatar image Everynone Mar 09 '19 at 07:17 PM

Is this the only place where you use that array?

avatar image Rei_Ito Mar 10 '19 at 03:47 AM

Yeah, it even happens when I print on construct without touching it

avatar image Everynone Mar 10 '19 at 06:48 AM

Little else remains but to redo the struct. However unlikely, I'd consider something that simple misbehaving an engine quirk.

Do tell if redoing it solved it.


Unrelated: the behaviour of collapsed nodes with structs whose pins are split still baffles me like nothing else, for example. Use them every day, they fail in 1/10 cases and I've yet to see a pattern. ¯_(ツ)_/¯


Edit: one thing you could do is to double check the Enumerator. There are some reserved keywords in the engine that you will be occasionally able to punch in and the editor may allow it at times with no warnings. Consider renaming enumeration fields to something more unique - a Hail Mary of an advice but who knows.

(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