14 lines
371 B
C#
14 lines
371 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SkyboxRotation : MonoBehaviour
|
|
{
|
|
[SerializeField] private float rotationSpeed;
|
|
void Update()
|
|
{
|
|
RenderSettings.skybox.SetFloat("_Rotation", Time.time * rotationSpeed);
|
|
//To set the speed, just multiply Time.time with whatever amount you want.
|
|
}
|
|
}
|