Search Unity

parallaxing

Discussion in '2D' started by Asle_Kinnerod, May 15, 2014.

  1. Asle_Kinnerod

    Asle_Kinnerod

    Joined:
    May 10, 2014
    Posts:
    1
    Hey,

    I have attached this script to two different game objects with texture that again are attached to a camera( not main camera)
    "renderer.material.mainTextureOffset = new Vector2 (Time.time * speed , 0f);"
    works like a charm…. But now I only want the background to move on a different game object movement. like "angry bird". backgrounds moves on the camera movement. Can anyone help??