Download

OnConstruction() Not Getting Called Using Transform Gizmo

I have a simple C++ actor that has 3 components. 1 Spline Component, 2 Static Mesh Components. This actor has been dragged into the world, I am moving it’s components around and the actor’s OnConstruction() should be updating values accordingly.

What I’ve been struggling with:
When I move a spline point with the transform gizmo, OnConstruction() gets called.
When I move the entire spline component with the transform gizmo, OnConstruction() does NOT get called.
When I move the spline component by manually typing in values into the location vector, OnConstruction() gets called.
When I move a static mesh component with the transform gizmo, OnConstruction() does NOT get called.
When I move a static mesh component by manually typing in values into the location vector, OnConstruction() gets called.

I’ve tried the same thing with a Blueprint using the construction script. It seems to have very similar issues. Unfortunately PostEditMove() also suffers from the exact same issue.

Edit: Making a blueprint child and moving the components around in the blueprint’s viewport calls OnConstruction() as expected. It’s only when the actor is dragged into the world and the actor’s components are moved around with the gizmo where construction script/OnConstruction/PostEditMove are not being called.

This is really frustrating! Is there a scene component setting or an actor setting that I should have enabled? Is there another event other than OnConstruction() or PostEditMove() that would pick up on this? I’m losing my mind!

Thanks so much in advance!

Using UE 4.24.3

Hey its been 2 days and this has been driving me absolutely crazy. I’m just curious if this is a bug or intended behavior? I can’t get any event to fire when an actor’s component is moved with the transform widget in the world.

It’s really starting to feel like a bug…