VR/Assets/World/Sphere To Fix Renderpipelin.../RotateSky.cs

12 lines
298 B
C#
Raw Normal View History

2024-01-06 16:06:48 +01:00
using UnityEngine;
public class ConstantRotation : MonoBehaviour
{
public float rotationSpeed = 30f; // Adjust the speed as needed
void Update()
{
// Rotate the object around its Y-axis continuously
transform.Rotate(Vector3.up, rotationSpeed * Time.deltaTime);
}
}