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

Changing the deferred lighting path internal resolution

Discussion in 'PSM' started by bakanekofr, Dec 22, 2014.

  1. bakanekofr

    bakanekofr

    Joined:
    Feb 28, 2014
    Posts:
    122
    Hello,

    Is it possible to change the deferred lighting path's internal resolution?
    "Screen.SetResolution" seems to change the whole screen resolution, including the UI.

    My goal is having lower 3D resolution, but keeping the native resolution for the UI.
    My UI is rendered with the "OnGUI" fonctions, such as "GUI.DrawTexture".

    Any solution?

    Thanks.
     
  2. Project-Mysh

    Project-Mysh

    Joined:
    Nov 3, 2013
    Posts:
    223
    Well, I recomend to use screen % to calculate UI position and size, dont use px reference. This way, you can change screen resolution but your UI will stay at same place and size. And of course this way you can add and option in game settings to let users change UI size easly.