Search Unity

How to rotate a skybox in relation to the camera

Discussion in 'Scripting' started by BearSheriff, Aug 28, 2016.

  1. BearSheriff

    BearSheriff

    Joined:
    May 14, 2015
    Posts:
    20
    Hey everybody, I am making a Gear Vr app that takes panoramas of an interior and allows you to view them (like google street view). There are arrows in the app that once selected change the skybox to a different material, the first time around this works without any issue, but when backtracking it becomes apparent that the skyboxes are oriented the wrong way. How would I write a script that makes the skyboxes' rotation consistent with the camera? Thank you for the help.
     
  2. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889