Search Unity

Resolved Change camera's render type through script?

Discussion in 'Scripting' started by VadanaPon, Dec 3, 2022.

  1. VadanaPon

    VadanaPon

    Joined:
    Jul 5, 2022
    Posts:
    45
    I want to change a camera's type from base to overlay, but the setting doesn't seem to be exposed through script.
    Does anyone know how to do it?
     
  2. VadanaPon

    VadanaPon

    Joined:
    Jul 5, 2022
    Posts:
    45
    Found it, i had to change it through the UniversalAdditionalCameraData.renderType