Im working on my game and i created interactable actor class in c++, which has Mesh and BoxCollision components.
AInteractableActor::AInteractableActor(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
PrimaryActorTick.bCanEverTick = true;
FocusBox = ObjectInitializer.CreateDefaultSubobject<UBoxComponent>(this, "FocusBox");
RootComponent = FocusBox;
FocusBox->SetCollisionResponseToAllChannels(ECR_Ignore);
FocusBox->SetCollisionResponseToChannel(ECC_Pawn, ECR_Overlap);
Mesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, "Mesh");
}
So, im trying to make box collision ignore all channels except Pawn, evertying compiles fine, but in editor Collision preset is set to Custom, and every channels are set to block. What am i doing worng?