title: How to change the Unity Post Processing Layer Anti Aliasing Type Through C#
body: <p>Im wondering How to change the Unity Post Processing Layer Anti Aliasing Type Through C#, I have tried everything but can't figure it out.
  I looked through the code for the layer script but still cant figure it out.</p>
  
  <p>I have tried: </p>
  
  <pre><code>MainL.antialiasingMode = Antialiasing.[Setting];
  </code></pre>
  
  <p>[Setting] = An Antialiasing setting.</p>
  
  <p>But that hasn't worked. </p>
  
  <p>code: </p>
  
  <pre class="lang-c# prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.Rendering.PostProcessing;
  
  public class GameQuality : MonoBehaviour 
  {
      public Camera Main;
      public PostProcessVolume MainV;
      public PostProcessProfile Less;
      public PostProcessProfile High;
      public PostProcessProfile Ultra;
      public PostProcessLayer MainL;
  
      // Use this for initialization
      void Awake()
      {
          QualitySettings.GetQualityLevel();
  
          if(QualitySettings.GetQualityLevel() &gt; 2)
          {
              MainV.profile = Less;
          }
  
          if(QualitySettings.GetQualityLevel() == 3)
          {
              MainV.profile = High;
          }
  
          if(QualitySettings.GetQualityLevel() == 4)
          {
              MainV.profile = Ultra;
          }
      }
  
      // Update is called once per frame
      void Update () 
      {
  
      }
  }
  </code></pre>