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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Is it possible to bake lights for objects only?

Discussion in 'General Graphics' started by DroidifyDevs, Oct 2, 2016.

  1. DroidifyDevs

    DroidifyDevs

    Joined:
    Jun 24, 2015
    Posts:
    1,724
    Hello!

    So I'm going to be as specific as possible. I'm making a game where the player runs left. As he runs, I spawn different prefabs with challenges inside. Here's an example of what I spawn:


    As you might have noticed, the torches cast light. Since this game is for mobile (Android), I need to optimize the lighting. I've already turned off all shadows. However, the realtime point lights take about 15% of my resources (in the Profiler).

    So my question is: Is it possible to bake lights for gameobject prefabs that are randomly spawned? If not, what other options do I have for optimizing my project? In case you're wondering, here's the build quality settings:



    Currently, I'm getting about 19-22 FPS on a Samsung Galaxy Tab 3 7.0. While it's not unplayable, it does need a bit of improvement.
     
    Last edited: Oct 2, 2016
  2. PeteUnity3D

    PeteUnity3D

    Unity Technologies

    Joined:
    Jan 4, 2016
    Posts:
    68