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. Dismiss Notice

URP MSAA disable runtime?

Discussion in 'Universal Render Pipeline' started by nbfp, Dec 19, 2019.

  1. nbfp

    nbfp

    Joined:
    Jul 30, 2015
    Posts:
    23
    How can you set MSAA to disabled in script?
    Code (CSharp):
    1. PipelineAsset.msaaSampleCount = 0;
    This does not work. You can set it to 2 or 4 at runtime, but how do you set it to disabled?
     
  2. nbfp

    nbfp

    Joined:
    Jul 30, 2015
    Posts:
    23
    Answer:
    I got a notification and an answer on my email, although it doesn't show here (yet?). It was as simple as setting msaaSampleCount to 1 (not 0).

    Thank you for BattleAngelAlita for the answer.
     
    Marrlie and ROBYER1 like this.
  3. Adam_Benko

    Adam_Benko

    Joined:
    Jun 16, 2018
    Posts:
    99
    Hi. After declaring the
    public RenderPipelineAsset pipelineAsset;
    I can access the msaaSampleCount. Do you happen to know why ? Thanks.
    @nbfp