Description

This is similar to [Link Removed], only in this case, the "Array Get" node is implemented as a UK2Node_GetArrayItem and not a UK2Node_CallArrayFunction. The fix for [Link Removed] currently applies only to the lower-level UK2Node_CallArrayFunction implementation; thus, the high-level UK2Node_GetArrayItem implementation will need a similar fix to match.

However, I could not find a situation where this could lead to a warning/error instead, so the fact that it's just a compiler note probably decreases the priority on this one.

Steps to Reproduce
  1. Launch QAGame editor.
  2. Create an Actor-based Blueprint class.
  3. Add a new variable of type ActorComponent (NewVar_0).
  4. Add a new Array variable of type StaticMeshComponent (NewVar_1).
  5. Drag the Array variable into the event graph and drop a "Get" node.
  6. Drag off the output pin on the "Get" node and add an "Array Get" node.
  7. Drag off the output pin on the "Array Get" node and drop a "Set New Var 0" node.
  8. Break all links on the "Array Get" node. Note that the pin types revert back to wildcard.
  9. Drag off the input pin on the "Set New Var 0" node and connect to the output of the "Array Get" node. Note that the pin type is now "Actor Component Refererence."
  10. Reconnect the NewVar_1 "Get" node's output to the "Array Get" node's input.
  11. Delete the "Set New Var 0" node.
  12. Drag off the output of the "Array Get" node and drop a "Cast to StaticMeshComponent" node.
  13. Connect the output exec pin on the "Event BeginPlay" node to the input exec pin of the "Cast to StaticMeshComponent" node.
  14. Compile and save. Note there are no notes, warnings or errors.
  15. Close and relaunch the editor.
  16. Open the Blueprint class created above. Note that there is now a compiler note on the "Cast" node (as the cast is now unnecessary), and that the "Array Get" node pin type has changed to "Static Mesh Component Reference."

Expected result: The "Array Get" node pin type remains set to "Actor Component Reference" so that there is no compiler note, since the cast was originally in place.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-43822 in the post.

0
Login to Vote

Won't Fix
CreatedApr 10, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021