Merge mesh and add action on its submesh

Here I have merged two meshes, but unable to add action on individual mesh

Welcome aboard!

MergeMeshes creates a new mesh, so you will need to add actions to this mesh if you want to interact with it. If you want to have separate actions on the box / the sphere, you can’t merge them because the distinction between both meshes will disappear once merged.