Create a "Collision Responses" UPROPERTY

how do I create a “Collision Responses” UPROPERTY? I’d like to add this to my custom class, and set default values for it in my constructor. I’ve included a screenshot of one of default classes in the editor.

219851-capture.png

You mean you want to add something new to Ignore, Overlap, Block? Some 4th state?

Or you want to add new collision channel, like WorldStatic, Pawn, and so on? Its not property, it can be added through editor - Edit - Project Settings - Collision

Sorry I wasn’t more clear. I don’t want to add a custom collision response. I literally want to have a property in my custom class that looks like the screenshot, under my own custom category. At runtime I will read the values from the table and use them in a custom way.

You don’t need to have a “Collision Responses” UPROPERTY to set default values inside of the constructor. You can simply use the function:

CollisionMesh->SetCollisionResponseToChannel(ECollisionChannel::*CHANNEL TO CHANGE THE RESPONSE OF*, ECollisionResponse::*NEW RESPONSE*);

To read the collision response values you can use: CollisionMesh->GetCollisionResponseToChannel(ECollisionChannel::*...*); and store it in an ECollisionResponse variable.