CSG bake_static_mesh thorugh code returning null

Godot Version

4.3

Question

I am creating CSGPolygon3Ds through code and they show up perfect in the game scene and I can bake_collision_shape through code on them just fine so I know the geometry is correct and it is the root CSG node(which are the only 2 things the method says should return an empty mesh for)

Is there something else i am missing for why this wouldn’t be working through code?

From your description I can’t understand what works for you and what doesn’t. Please share you code and any errors that you get when you run the code.

All CSG updates are deferred so you are likely just calling the function too early while your CSG still has no result.