Struct in Object class will not populate if struct pin split on "Construct Object from Class" node. This does not appear to happen to other variable types.


Do not split the struct pin, populate the struct using a "Make Struct" node.

Regression (no) issue (does) occur in 4.11.2

Steps to Reproduce
  1. Open Editor (any project)
  2. Create new struct in content browser, name it "TestStruct"
  3. In TestStruct, add integer variable
  4. Create new actor blueprint, name "TestActor"
  5. Create new object blueprint name "TestObject"
  6. In TestObject blueprint, add struct variable of type TestStruct
  7. In Details pane, set struct variable to editable and expose on spawn
  8. In TestActor blueprint create a "Construct Object from Class" node from event begin play.
  9. Set Class to TestObject blueprint, and Outer to anything.
  10. Split TestStruct pin
  11. Set integer to 5
  12. Drag from target pin > Get TestStruct variable
  13. Split TestStruct variable pin
  14. From integer variable> To String
  15. From To String> Print String
  16. Attach Print String execution to Construct Object node
  17. Compile
  18. Place copy of TestActor in level viewport
  19. PIE


Print String prints "0"


Print String prints "4"

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

Login to Vote

ComponentUE - Gameplay - Blueprint
Affects Versions4.12.5
Target Fix4.18
Fix Commit3578806
Main Commit3582334
Release Commit3643070
CreatedJul 29, 2016
ResolvedAug 9, 2017
UpdatedJun 11, 2019