I’m calling OnConstruction on object B from object A’s OnConstruction, because the spline-positions of object B is dependent on obcject A’s splines and when I change object A, object B should immediately move along. My problem is, that I use
USplineMeshComponent* SplineMesh = NewObject<USplineMeshComponent>(this);
SplineMesh->CreationMethod = EComponentCreationMethod::UserConstructionScript;
and when I call OnConstruction on object B manually from object A (e.g. when I change position of A), then there will be a lot of spawned SplineMeshComponents until I move my object B.
Is there a way I can trigger the same OnConstruction call on object B that is called when I move the object around in the editor?