How to set up collision profile name to a Blueprint class

I’ve just started to learn Unreal Engine 4.26.2 and Blueprints.

I’m trying to set collisions profile name to a Pawn Blueprint class and I have found two ways to do it (I think):

One, inside the Construction Script, and the Other One in the Details Panel.

Which one is the correct one?

Inside the Construction script, I have to set the name of the collision profile by hand in the “In Collision Profile Name” property of the function Set Collision Profile Name. And I don’t know if that is correct.

Avoid the Construction Script; it has a few performance issues. Just set the properties in the Details panel.

1 Like

Do not use the construction script to set defaults, running scripts instead of just making it the default option needs no explanation for why that is a bad idea.