Code Snippets - CSC4790-Fall2024-Org/Distant-Lands GitHub Wiki
Basic C# rotation of the skybox
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public float RotateSpeed = 0.1f;
void Update()
{
RenderSettings.skybox.SetFloat("_Rotation", Time.time * RotateSpeed);
}
}
Unity Project has more instances of 'code' but is in relation to different Unity elements communicating to each other