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

Is it possible to have preface rooms with lightmapping

Discussion in 'Scripting' started by bansheesoft, Oct 24, 2014.

  1. bansheesoft

    bansheesoft

    Joined:
    Oct 3, 2014
    Posts:
    62
    I want to randomly generate levels from pre built rooms but with lightmapping. I do not care about Interoom lighting. Thanks for any pointers I am learning as I go and am moving from a hand built engine to unity. Which I love!
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    You can't lightmap at runtime. If you use editor scripting, you can create a series of random levels and lightmap those automated if you want.

    For runtime you would need to use Unity's realtime shadows.

    Regarding hand built- I've sort of done this myself, built on top of Unity. Its fun & personal.
     
  3. cmcpasserby

    cmcpasserby

    Joined:
    Jul 18, 2014
    Posts:
    315
    Yes but you can build all your room varients in the scene, bake lights than prefab them, emptry the scene and spawn them back in with instantiate.