- Home /
How to rotate an HDRI sky through a script in the HD render pipeline?
Hello, I've spent the last two hours going insane over this! I simply wish to adjust the rotation of my HDRI sky in a script, but I don't know how to reference the rotation. It was pretty simple a while ago, but with the new pipeline and rendering Volumes, I just can't figure out how to access these values. Any help is hugely appreciated. Thanks!
Answer by Jeremy-Horton · Nov 11, 2019 at 01:07 PM
using UnityEngine.Experimental.Rendering.HDPipeline;
public class App: MonoBehaviour {
[SerializeField] Volume volume;
void SetHdriRotation(float rot) { HDRISky sky; volume.profile.TryGet(out sky); sky.rotation.value = rot; } }
Your answer
Follow this Question
Related Questions
Cannot change from code HDRI sky distortion. 1 Answer
Light don't pass through object with cutout material 0 Answers
separate vert and frag shader functions in two distinct URP Render Features 0 Answers
Using Color.Lerp with Lightweight Render Pipeline 1 Answer
HDRP 2019.3.0f3 |My materials are different on my scene, and everything is gray 0 Answers