Change Collision Presets with C++(or blueprint)

you can also try editor scripting