Thanks. But I deleted the child actor from the scene, then added it again, and now it works, for some reason.
When I debug, I see the code in the parent running. So I thought it’s basically being run on the child itself, because if you put multiple children in the scene, the code runs that many times. And so I thought the variable values will the ones belonging to the child that’s running the code at that time.
Am I wrong?
A child class is an extendable copy of the parent. Similar to a duplicate, but the code isn’t exposed. If you wrote in C++ you’d simple be “including” the parent.
Each instance is a separate execution of the class code.
So am I to expect it might not work in the future? Is this a bad way of achieving what I want? Should I just copy the code straight into the children to ensure the variable value gets assigned?