Version: 2017.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 casted 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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961