Search Unity

Question can I use the device-camera(android) with more lower resolution for using on light ar-app.

Discussion in 'Unity MARS' started by JYGames_1, Apr 5, 2021.

  1. JYGames_1

    JYGames_1

    Joined:
    Dec 30, 2020
    Posts:
    8
    First of all, I would like to thank you for this forum. I am still struggling, but I am getting a lot of help here.
    Today, I need an other help. can I use the device-camera(android) with more lower resolution for using on light ar-app? I tried various things, but couldn't figure out how.
     
  2. Jono_Unity

    Jono_Unity

    Unity Technologies

    Joined:
    Apr 5, 2016
    Posts:
    18
    Hey @JYGames_1! Could you tell us more about what you're looking to build? Are you looking to support lower-end devices? Or are you asking more about getting the camera image to do custom effects, or something else?
    Glad to hear the forum is helpful! Let's get these struggles sorted :)
     
  3. JYGames_1

    JYGames_1

    Joined:
    Dec 30, 2020
    Posts:
    8
    :(I am sad at my English. I'll give an example.
    I would like to set a resolution for ar camera. It is one of the resolutions obtained in the following code and it is not the maximum resolution of that android device.
    In other words, I don't want my app to overuse a camera device with high-resolution that exceeds Full-HD.

    Is it possible?

    Code (CSharp):
    1. var resolutions = UnityEngine.Android.WebCamTexture.devices.First().availableResolutions;
     
    Last edited: Apr 9, 2021
  4. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    297
  5. JYGames_1

    JYGames_1

    Joined:
    Dec 30, 2020
    Posts:
    8