Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

How to set the resolution for a camera?

Discussion in 'General Graphics' started by econt, Oct 15, 2019.

  1. econt

    econt

    Joined:
    Apr 8, 2019
    Posts:
    43
    Hi,

    how can I set the resolution in pixel for a Camera?

    Thanks in Advance.
     
  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    345
    Depends on what you mean by "resolution for a camera".
    If camera render target is RenderTexture then it's resolution of that texture.
    Screen.SetResolution if it render to screen.
     
unityunity