Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
1,530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. public class MoveSkybox : MonoBehaviour {
  2.  
  3.     float curRot = 0;
  4.    
  5.     void Start () {
  6.        
  7.     }
  8.    
  9.     // Update is called once per frame
  10.     void Update () {
  11.         curRot += 50 * Time.deltaTime;
  12.         curRot %= 360;
  13.         RenderSettings.skybox.SetFloat("_Rotation", curRot);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement