Version: 2021.1
언어: 한국어

Lightmapping.BakeMultipleScenes

매뉴얼로 전환
public static void BakeMultipleScenes (string[] paths);

파라미터

paths The path of the Scenes that should be baked.

설명

Bakes an array of Scenes.

This loads all Scenes and then builds all lightmaps, reflection probes and enlighten data. The function automatically splits all baked data based on Scene. Lightmap atlasses for example are always split between Scenes. Thus you can bake lightmaps for two adjacent levels and light and shadows cast onto objects in level A will be affected by the objects in level B.

Enlighten system data will automatically connect neighboring systems when it is additively loaded, thus bounce lighting can flow from one Scene to another.

A single LightProbe asset is generated for all Scenes. Hence for the time being, lightprobes always take as much memory as there are lightprobes in all levels that are baked together.

Only one ambient probe & default sky probe will be baked and assigned to each Scene.

Multiple Lightmapsnapshot objects containing the data for each Scene are written into a single file in "MyScene/LightmapSnapshot.asset". At build time this data will also be automatically split as well, hence if you bake multiple Scenes but then only deploy one Scene then only the lightmap data for that Scene will be deployed.