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

Repeat lights along with background

Discussion in '2D' started by Ryamation, Mar 12, 2021.

  1. Ryamation

    Ryamation

    Joined:
    Mar 11, 2021
    Posts:
    2
    If I have a scrolling background that repeats, how would I repeat the lights along with it?
     
  2. Derekloffin

    Derekloffin

    Joined:
    Mar 14, 2018
    Posts:
    322
    Same way you're repeating your background, dynamically adding and subtracting lights. Add them as they come into view, and remove those that are long out of view.