Search Unity

Question Make a scrolling main menu background?

Discussion in 'Scripting' started by TheKrazyDev, Dec 17, 2022.

  1. TheKrazyDev

    TheKrazyDev

    Joined:
    Sep 8, 2021
    Posts:
    107
    So I want to add a main menu background that infinitely scrolls, but It needs to be able to be lit up using 2d lights. I cant seem to think of any methods of doing this. Would I want to use a shader?

    (Apologies if this isnt the right forum to be posting this in)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    Any 2D sprite scrolling method would suffice.

    The usual technique for infinite scrolling is is to continuously remove rows / columns from the side going away, and add fresh ones to the side coming on.