Download

Component does not copy when using ALT in editor

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 :slight_smile:

+1 to this issue

https://answers.unrealengine.com/questions/125705/duplicating-an-actor-using-altdrag-or-ctrlc-ctrlv.html