Search Unity

Dynamically set Screen Resolution based on Device Resolution

Discussion in 'iOS and tvOS' started by eco_bach, Apr 25, 2019.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Can anyone tell me if its possible to retrieve and set application resolution from your device at runtime?

    Or is it necessary to hard code these values in your Awake, Start methods?

    What is the recommended strategy for deploying a single app to different devices with different resolutions?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    To design it in a way where resolution does not matter much?
     
    eco_bach likes this.
  3. sfjohansson

    sfjohansson

    Joined:
    Mar 12, 2013
    Posts:
    369
    What worked best for me to draw the 3d camera to a texture...and mess with the resolution of that and leave the UI at native to get best quality.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    Sure, we do that too, but you generally do that for performance reasons, which I'm not sure is what the OP is asking about.