Description

Link to test project: [Link Removed]

 

In BP_MyPlayerController event graph, “T” is bound to a Blueprint function called “BPSetMyArrayElement0To5”. “BPSetMyArrayElement0To5” calls the C++ function “GetMyArrayReference” and, using the returned reference, calls the SetArrayElem node to set the value of element 0 in the referenced array to 5. This should set element 0 of MyArray to 5 and then print “5”, but it does not. Doing the same logic in C++ under the "V" key yields accurate results.

 

 

Steps to Reproduce
  1. In provided test project, play the game 
  2. Press T 
  3. Press V

Results: T and V print different results even though they call the same function. T through blueprint and V through a function created in C++.

 

Expected: Both to return 5.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-100928 in the post.

0
Login to Vote

Unresolved
ComponentGameplay
Affects Versions4.24.24.25.3
CreatedOct 12, 2020
UpdatedOct 12, 2020