Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bake Scene in a Script?

Discussion in 'Editor & General Support' started by MadmanSilver, Dec 29, 2014.

  1. MadmanSilver

    MadmanSilver

    Joined:
    Dec 19, 2014
    Posts:
    5
    Is it possible to bake the scene inside of a c# script? I have a world that uses a very basic procedural generation to create a map. I want to use light mapping, but I don't see a way to bake the scene after it is generated. I cannot bake the scene before it exists (obviously). Is there a completely different way of doing this?
     
  2. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,381
    You cannot bake lighting or navmeshes at runtime.
     
  3. MadmanSilver

    MadmanSilver

    Joined:
    Dec 19, 2014
    Posts:
    5
    Well, is there any way around this? I am going to have many lights but I do not want to use vertex lighting.
     
  4. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,381
    I haven't find anything particularly promising, would be interested to hear what others using procedural generators for their maps are doing about lighting this regard.
     
  5. MadmanSilver

    MadmanSilver

    Joined:
    Dec 19, 2014
    Posts:
    5
    Yeah, I have had no luck in searching either.


    Anyone out there who has their own way of doing this?