Developer Notes

The construction script is run on instances created from the blueprint, not a way of customizing internal properties of the blueprint (which ultimately the template is).


Project showing the issue attached. Variables in child actor template not updating based on changes made in child actor's construction script.

Per licensee, "I'm basically trying to make a child actor that's pretty customizable, and while the template works well for directly setting variables, it would be great if for example, a bool checkbox could tell your child actor's construction script to run a function/update a variable and output the result in the child actor template, especially since the changes are being made, just not presented back to the user."

Steps to Reproduce

In new project:

  1. Create new BP class>Actor (Actor1)
  2. Create another new actor (Actor2)
  3. Add child actor component to Actor1, set Child Actor as Actor2
  4. Create a variable on Actor 2
  5. In Actor2's construction script, get variable and set it or otherwise update it somehow
  6. Compile
    Result: No change in the variable from the child actor template inside of Actor1
    Expected: Child actor template reflects the changes made to child actor's construction script.

Have Comments or More Details?

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

Login to Vote

By Design
ComponentUE - Gameplay - Blueprint
Affects Versions4.
CreatedSep 18, 2017
ResolvedSep 18, 2017
UpdatedApr 27, 2018
View Jira Issue