Skip to content

Instantly share code, notes, and snippets.

@JimmyCushnie
JimmyCushnie / UnityGraphicsBullshit.cs
Last active November 3, 2024 06:02
Exposes some Unity URP graphics settings that are (for some stupid fucking bullshit reason) private.
using System.Reflection;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using ShadowResolution = UnityEngine.Rendering.Universal.ShadowResolution;
/// <summary>
/// Enables getting/setting URP graphics settings properties that don't have built-in getters and setters.