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"

Bug report: reordering Instance Editable arrays in 4.18 breaks the array

4.18 has introduced a new feature to re-arrange arrays in the editor. This works well sometimes. But I've found that reordering can break the array if it's marked as Instance Editable.

Steps to reproduce the bug:

  • create a new array, add a few items to it

  • mark that array as instance editable

  • reorder items in that array

Following this steps will turn the array into a broken state. It will show up as if it were fine and working in the editor where you just reordered the items. But in-game, if you try reading its values, you'll find that the reordering added new items to it using their default values (or empty), these items cannot be changed, or removed. In fact, in this state, if you delete all items from the array and make it empty. Reading it in-game will still read the same items in it.

Here's an example project that contains arrays already in the glitched state so you can see it for yourself:

https://github.com/vibrunazo/TPTtest02

This project is simply the Third Person Template. All I did was add a couple of arrays on the Character Blueprint, make instance editable, reorder, print their values on screen when you press X. You can see that the values printed are different from the values of the array in the editor. If you try to change the array in the editor, it will keep printing the wrong ones.

Here's a screenshot from that project that shows exactly the problem: same array shows different values Notice how it's the same array on the left and on the right. On the right, the values it should have showing correctly in the editor after reordering it. But on the left, you see what are the actual values recorded internally that are being read in game. See how it has one extra element that was added at index zero, and the others were actually not reordered.

After the array is in this broken state, I have not found any way to fix it. So for my only solution is to do a git reset --hard HEAD to return to the previous commit before reordering the array. Then never reorder it again.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 10 '17 at 08:40 PM in Bug Reports

avatar image

vib
75 9 12 18

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

1 answer: sort voted first

Hey,

I was able to replicate the issue. I have logged a JIRA ticket with the developers for them to address this. You can access UE-52377 at anytime to check the status of the bug.

more ▼

answered Nov 14 '17 at 07:59 PM

avatar image

Trey Z ♦♦ STAFF
997 3 4 9

(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