Skip to content

Instantly share code, notes, and snippets.

View JoyboyWang's full-sized avatar
🙈
A vegetable chicken

YinqiaoWang JoyboyWang

🙈
A vegetable chicken
View GitHub Profile
@satanas
satanas / scrolling_bg.md
Last active December 16, 2025 17:56
Scrolling Background in Unity

Scrolling Background in 2D

  1. Select the original Texture (not the GameObject).
  2. Change Texture Type to Sprite (2D and UI).
  3. Change Wrap Mode to Repeat.
  4. Click Apply.
  5. Create a Quad object: GameObject -> 3D Object ->Quad.
  6. Scale the Quad to the size you want.
  7. Create a light: GameObject->Light->Directional Light.
  8. Adjust the light intensity to whatever you like.