Search Unity

Access camera value?

Discussion in 'Scripting' started by Abrakidabra, Feb 20, 2020.

  1. Abrakidabra

    Abrakidabra

    Joined:
    May 12, 2017
    Posts:
    62
    I have been having a shader problem (https://forum.unity.com/threads/opaque-texture-bug.832003/) and i wish to fix it with a workaround

    I am using LWRP and I can fix my shader by turning opaque texture on and off again during runtime using the inspector. I want to therefore do this via a script


    How can i access the camera value "Opaque Texture" and set this on and off? i cant see any documentation on this.

    Thanks for any advice!
     
  2. alexeu

    alexeu

    Joined:
    Jan 24, 2016
    Posts:
    257