Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    52
    Hi,

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

    Thanks in Advance.
     
  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    350
    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.