I have a blueprint which based on my class derived from AActor and have component which derivied from UMovementComponent.
In Constructor of my Actor I’m initializing my movement component:
AShip::AShip(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP)
{
m_RootPrimitive = PCIP.CreateDefaultSubobject<UPrimitiveRoot>(this, TEXT("PrimitiveBase"));
m_MoveComponent = PCIP.CreateDefaultSubobject<UShipMovementComponent>(this, TEXT("ShipMoveComponent"));
RootComponent = m_RootPrimitive;
m_MoveComponent->UpdatedComponent = m_RootPrimitive;
Material = NULL;
PrimaryActorTick.bCanEverTick = true;
}
Now if I’m opening my blueprint (in blueprint editor), which based on AShip, it will always be marked as modified. Even if I haven’t done anything.