simom85
December 9, 2010, 10:23pm
1
Hi everibody! I have two questions:
Can I assign “static” at all objects at once?
I have tryed to select all objects in Hierachy and clich on “static” but I noticed that it do not work! Many object remain without “static”
Can Unity save lightmaps of determinate objects?
example: I “bake select” a few objects and thei are good! I don’t want re-baking these objects! Can I keep these lightmaps?
If I do Bake for other objecs all lighmaps will be deleted!
Thanks
Jessy
December 10, 2010, 12:08am
2
Check the manual for the recommended solution to 1.
simom85
December 10, 2010, 7:48am
3
I’m searching in the lighmapping manual but I don’t find a way to select all the objects at once! Can you help me please?
Jessy
December 10, 2010, 9:43am
4
Sorry, the trick is actually on the Occlusion Culling page, which comes after the lightmapping pages:
You need to tag all scene objects that you want to be part of the occlusion to Static in the Inspector. The fastest way to do this is to parent the objects you want to be Static to an Empty GameObject and set the parent as Static, choosing to affect children also when the option dialog appears on the screen. After they are tagged as Static you can unparent them from the Empty GameObject.
If that’s not to your liking, make an Editor script.
simom85
December 10, 2010, 1:00pm
5
simom85
December 10, 2010, 1:07pm
6
simom85
December 10, 2010, 1:28pm
7
I Noticed that it is not very usefull because you must expand manually folders (parents) otherwise it will be not assigned. Maybe I need a script that expand automatically parents! it exist? thanks!