How Do You Set Custom Collision Presets from Code?

You can create your own profiles in the project settings like you have above, and you can set those profiles on objects when you create them or at runtime like so. E.g, if i have a profile called ‘DefaultPickup’



	RootSphere = OI.CreateDefaultSubobject<USphereComponent>(this, FName("RootSphere"));
	RootSphere->SetCollisionProfileName(FName("DefaultPickup"));


9 Likes