How to set "Use complex collisions as simple" in CODE?

Hello everyone,
I’m writing a method which allows to manipulate assets. (in editor, not in game)
Straggling to find a way to set “Use complex collisions as simple” on a static mesh asset in code.
Any suggestions?
Thanks

Hello,

After investigating the issue, it seems that this property can only be accessed using the Static Mesh Editor that is available in the Editor itself. This does not seem to be a property that is editable through code.

Have a great day,

Sean Flint


Component->GetBodySetup()->CollisionTraceFlag = ECollisionTraceFlag::CTF_UseSimpleAsComplex;

It is possible from code:)

Remember to include “PhysicsEngine/BodySetup.h”