Set Collision Complexity in Editor Utility Widget.

Hello, I’m trying to create an Editor Utility Widget that sets the selected mesh’s collision complexity to Simple. My current setup doesn’t seem to work.

Does anyone have any idea how to make this work?
I know it’s possible to do this through Property Matrix, but I’d like to know if it can be done directly via an Editor Utility Widget.

Thanks

Hello @faraz94 ,
First, enable the Scripted Geometry and Dataprep plugins.


Then, create a new class with Asset Action Utility as the parent class (this is important because this type of utility lets you execute functions directly on assets selected in the Content Browser).

Inside that class, create a new function, for example ChangeCollision and add the logic to modify the StaticMesh collision as needed.

Once that’s set up:

  1. In the Content Browser, select the Static Meshes you want to modify (you can also press Ctrl + B if the mesh is already placed in the level to quickly locate it)

  2. Right-click and choose the function you created (ChangeCollision)

  3. To confirm it worked, open one of the assets (Ctrl + E) and check the Collision Complexity setting , it should now show the value you set in your Blueprint

With that, your Utility Blueprint should be working correctly.
I’m also leaving the documentation here in case you want to take a look at it.

Hope it helps.

1 Like