Lightmapping.Clear 清除

static function Clear () : void

Description描述

Deletes all lightmap assets and makes all lights behave as if they weren't baked yet.

删除所有灯光贴图资源并使所有灯光表现为它们仍然没有烘焙。

Only those assets are deleted that are in the folder with the same name as the scene name AND their name follows the pattern LightmapFar-#.exr or LightmapNear-#.exr.

在文件夹具有相同名称作为场景名和它们的名字如下的模式LightmapFar-#.exr 或 LightmapNear-#.exr,只有那些资源被删除。

If LightmapEditorSettings.lockAtlas is disabled, it will also clear the lightmaps array and clear lightmap indices on all objects.

如果LightmapEditorSettings.lockAtlas被禁用,它也将清除光照贴图数组和清除所有物体上的 光照贴图索引。

最后修改:2011年6月28日 Tuesday 12:31

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。