Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Issues When Backing Up Lighting Info for Multiple Stages in Unity 5: No More .Lightprobes?

Discussion in 'General Graphics' started by GSdev, Jul 13, 2015.

  1. GSdev

    GSdev

    Joined:
    May 8, 2015
    Posts:
    14
    Our project has multiple separated areas within one scene. As the player progresses through the level they teleport from one area to the next.

    In Unity 4 when working on each individual area, or when a player enters a new area, the lighting would be loaded just in this way:
    1. load area prefab's asset bundle.
    2. instantiate area prefab to scene.
    3. load area's lightmap & light probes

    In Unity 4 we would backup our 'LightProbes.asset' file within our build area and it would be saved as 'LightmapSettings.lightProbes' which we would use to re-load the lighting data.

    But in 5, we use the api 'AssetDatabase.GetAssetPath(LightmapSettings.lightProbes)' and it links us to 'LightmapSnapshot.asset'.
    There is no longer any 'LightmapSettings.lightProbes'?
    Does this mean we can't backup light probes for individual areas in one scene anymore?