Hi all,
I have a cpp class which has a UDirectionalLightComponent in it, and I’ve created a blueprint from that cpp class and placed it in the world. At first, everything looks just fine.
My goal is to change the rotation of the directional light component when a value in the blueprint is changed in the editor, but no matter what I do in PostEditChangeProperty, everything turns pitch black as soon as I change any value in the blueprint, even scale or translation.
Through logging, I can see that the rotation of the dynamic light actually is being changed. Is there some kind of update function I need to be calling?
Thanks in advance.
edit: Super::PostEditChangeProperty() needs to be the first thing that’s called, I had had it as the last thing.