How can I change the Anti-Aliasing during runtime while using HDRP, inside a script. I wanted to make an in-game settings menu but can't get a hold of the AA. I found out it's on the camera as post processing, and I tried looking into documentations and guides, but nothing comes up in specifically changing it from one value to another outside of me manually changing in the editor. Only thing I found, which I hope is on the right track: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering.HighDefinition; public class SettingsMenuManager : MonoBehaviour { private HDAdditionalCameraData HDCData; public HDAdditionalCameraData.AntialiasingMode AAMode; private FrameSettings HDCFSettings; public GameObject HDC; public void checkQuality() { HDCData = HDC.GetComponent<HDAdditionalCameraData>(); HDCFSettings = HDCData.renderingPathCustomFrameSettings; AAMode = HDAdditionalCameraData.AntialiasingMode.None; } } I don't know where to go from here. How could I get specifically the AA on the camera and set it to something else? The script itself doesn't do anything outside of getting some values, however, I still can't get a hold of the specific AA that is being used on the camera. While in the Editor, I can see the AAMode has it's 4 correct values, but how do I assign it to the current used AA?
Figured it out... it's... "antialiasing" Code (CSharp): using UnityEngine.Rendering.HighDefinition; public class SettingsMenuManager : MonoBehaviour { private HDAdditionalCameraData HDCData; public GameObject HDC; public void checkQuality() { HDCData = HDC.GetComponent<HDAdditionalCameraData>(); HDCData.antialiasing = HDAdditionalCameraData.AntialiasingMode.None; Debug.Log($"Setting Anti-aliasing to to {HDCData.antialiasing}"); } } That Changes it to No anti-aliasing.