unity-abgabe2/Assets/RotateSkybox.cs

12 lines
226 B
C#
Raw Normal View History

2021-04-25 14:20:23 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSkybox : MonoBehaviour
{
void Update()
{
RenderSettings.skybox.SetFloat("_Rotation",Time.time * 1.8f);
}
}