How Do You Set Custom Collision Presets from Code?

I’ve created a preset within the editor, but how do I get the reference in c++?
Really desperate on this, thanks!

Anyone got a solution to this???

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"));


7 Likes