Hi,
lets say I have an Actor with a simple SphereComponent (ActorComponent).
Now I want to have the possibility to change the position of the SphereComponent in Editor and have it saved to the instance and world.
This works when I move the SphereComponent in the editor-detailspanel and save the world.
But when implementing an editor-button like this:
UFUNCTION(CallInEditor, Category="Move")
void RandomMoveSphere();
void MySphereComponent::RandomMoveSphere()
{
SetWorldLocation(*some location*)
}
I can see the location change in editor but the location will never be saved.
Tried stuff like PostEditMove(true), which calls OnConstruction(), but I cannot get it to save the changed location.
Any help would be appreciated.