Download

How do I access this property via code

1bcbcae0667efc3d1f1301428ed3487d036d3d3f.png

my pawn is:


	Car = CreateDefaultSubobject<UBoxComponent>(TEXT("CarMesh"))  

this means it’s a UPrimitiveComponent and has gravity/collision

The picture says I can turn it into a Box Collision. This will mean my pawn wont fall to the floor (yay, happy days)

I need to access that property and set it to “Box Collision”.

Car -> SetPropertyToBoxCollision.

How?