Search Unity

Feature Request Parallax

Discussion in '2D Experimental Preview' started by Iain-Lobb, Jun 3, 2016.

  1. Iain-Lobb


    Jan 11, 2013
    2 ways to achieve parallax - perspective camera or script on each TileMapRender which moves it based on camera position.

    If you use a perspective camera, and move a layer into the background, you get inconsistent pixel sizes - could unity automatically scale the object to account for this?

    Could Unity also ship with a script to do parallax the fake way, by re-positioning the object?
  2. mgear


    Aug 3, 2010
    I tried to make custom parallax effect by modifying default sprite shader,
    offsetting vertices based on worldcamerapos, and it kind of works. (can also use it for making static locked background, always follow camera)

    but the problem is that part of the tilemap disappears after moving around.. not yet sure why.
    (maybe parts of the tilemap get culled because tilemap transform goes out from camera view?)