Lightmapping.BakeSelected()

Hello!

So, I noticed Bake Selected option for Lightmapping is not there anymore with Unity 5.x
However, Lightmapping.BakeSelected() function still exists, so I felt smart and try using it… the results I got were not satisfying though!
It seems that it is still baking the lightmap for everything!

So my question is, did I do something wrong or does that function actually not work as its name suggests it ?

Many thanks!

That function is deprecated and will be removed soon. Trying to use it will cause the entire scene to be baked.