Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Lightmapping.BakeMultipleScenes

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual
public static function BakeMultipleScenes(paths: string[]): void;
public static void BakeMultipleScenes(string[] paths);

Parámetros

paths The path of the scenes that should be baked.

Descripción

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.