Impossible to get a "struct" via custom getter function in own actor

Repro steps:

  • Create a blank project
  • Create a new struct and name it (“ST_Test”)
  • Add a new Integer to the struct and name it (“Count”)
  • Create a new Actor Blueprint and name it (“BP_Actor”)
  • Create a new variable inside “BP_Actor” of type “ST_Test” and name it (“TestStruct”)
  • Create a new function (no difference if it’s pure or not) in “BP_Actor” and name it (“GetTestStruct”)
  • Add a return node to the function and return “ST_Test”
  • Go to the construction script and call the “GetTestStruct” function. Plug it’s output into a “SetMembersInST_Test” node. Set member “Count” to “100”

Expected behaviour: the value of “Count” should have changed from “0” (Default) to “100” if you try to read it elsewhere

Current behavior: The value remains “0” and won’t be set