Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MoveSkybox : MonoBehaviour {
- float curRot = 0;
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- curRot += 50 * Time.deltaTime;
- curRot %= 360;
- RenderSettings.skybox.SetFloat("_Rotation", curRot);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement