This should be simple, and every time I cannot find anyone addressing my question it means I’m overlooking something everyone else thinks is obvious.
Working in Unity 2020.3 High Definition Render Pipeline
Turn on Project Settings in Edit > Project Settings
Then, in Project Settings > HDRP Default Settings > HDRI Sky (checked) > HDRI Sky is using a cubemap for a skybox dragged from the Assets folder into the slot in the Settings Panel.
Below that are some settings:
- Enable Distortion (unchecked)
- Intensity Mode
- Exposure
- ROTATION <— Can I animate this? If I can then I could slowly rotate my skybox in the game, right?
Just below Rotation are Update Mode and Update Period which don’t appear to do anything as far as I can tell.
How can I animate the Skybox with a slow rotation?
I’ve tried the following script, added as a component to an empty game object in the hierarchy, which again does nothing as far as I can tell:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSky : MonoBehaviour
{
public float speed_Multiplier = 0.01f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
RenderSettings.skybox.SetFloat("_Rotation", Time.time * speed_Multiplier);
//To set the speed, just multiply Time.time with whatever amount you want in the speed multiplier.
}
}