Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How do I change Custom URP Settings via Script?????????

Discussion in 'Universal Render Pipeline' started by Risketos14, Dec 1, 2021.

  1. Risketos14

    Risketos14

    Joined:
    Sep 16, 2021
    Posts:
    1
    Im trying to make a Settings menu for a videogame (kinda obvious if i ask this in this page xd).

    1.png
    SO the thing is, as u see i have this Canvas done and it works quite good.

    As u see are different options in my canvas

    If I change the preset option VERY HIGH to HIGH, the shadows, alias and so on changes to to lower
    resolution options.

    But if im in one preset and i wanna change like shadows, the preset automatically changes to CUSTOM

    Also i have an URP_Settings for each preset that saves different quality settings as u see down here

    3.png


    So, with that being said, here comes the Problem



    As i said if i wanna keep High Quality Preset but also wanna remove Vsync option for exaple, the
    actual preset sets to CUSTOM, but it also sets the URP_Custom settings and thats a problem because it has many different options that i cant access to them in-game


    4.png


    Inside the Circled Asset there are many options like MSAA or Shadow Resolution and so on
    and there's the problem, becouse imagine, if i have the VERY HIGH preset set and i wanna reduce
    the shadow quality to a Half, the preset automatically changes to CUSTOM and INSIDE CUSTOM
    i have set that shadow quality is 4096 5.png


    SO HOW CAN I CHANGE THOSE VALUES AND SET THEM AS THE CANVAS VIA SCRIPT


    sry 4 the huge text lol




     

    Attached Files:

    • 2.png
      2.png
      File size:
      71.6 KB
      Views:
      234
  2. Geurtsy11

    Geurtsy11

    Joined:
    Dec 6, 2020
    Posts:
    2