I have seen that it is possible to create a Compound Collider when converting GameObjects to Entities in sub-scenes at editor time. You simply either mark your top-level GameObject to be converted as Static the old fashion way, or add the StaticOptimizeEntity component to the GameObject. This will cause a compound collider to be created if any children of the top-level entity have colliders.
My question is: is there a way to do this at runtime, or does it require me to have hand-placed objects in sub-scenes at edit time?