Hello, I have my custom component in APawn:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Selection")
TSubobjectPtr<UBoxComponent> SelectionBounds;
ACOMCharacter::ACOMCharacter(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
SelectionBounds = PCIP.CreateDefaultSubobject<UBoxComponent>(this, TEXT("Selection Bounds"));
SelectionBounds->SetCollisionEnabled(ECollisionEnabled::NoCollision);
SelectionBounds->AttachTo(RootComponent);
}
but It looks like everytime I copy actor which has this component, component is not copied. I always need to place new actor manually from blueprints or actor classes to have valid SelectionBounds component. Other components like CapsuleComponent and Mesh are copied without problems and I can access them in properties of copied instance.
Do you know where can be issue ?
Thank you