Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Feature Request Parallax

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

  1. Iain-Lobb

    Iain-Lobb

    Joined:
    Jan 11, 2013
    Posts:
    30
    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

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,477
    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?)