My custom actor (containing a few custom UMeshComponent) does not update when I change its location or the visibility of its components.
I instantiate it this way in
StartPlay() of my GameMode class:
MyCustomActor = GetWorld()->SpawnActor<AMyCustomActor>(AMyCustomActor::StaticClass());
Then I set its new location like this:
Is it because I did not set the Owner? Or what is wrong?
I don't understand why, but my code works now... It might be linked to those warnings:
LogActor:Warning: GameSession /Game/PersistentLevel.GameSession_19 has natively added scene component(s), but none of them were set as the actor's RootComponent - picking one arbitrarily
LogActor:Warning: Natively added component (MyCustomActor_143.RootComponent) was left unattached from the actor's root.