Search Unity

Lightmapping.BakeSelected()

Discussion in 'Global Illumination' started by LitchiSzu, May 14, 2016.

  1. LitchiSzu

    LitchiSzu

    Joined:
    May 14, 2016
    Posts:
    17
    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!
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    That function is deprecated and will be removed soon. Trying to use it will cause the entire scene to be baked.