Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Mobile Camera High Quality Pictures

Discussion in 'Scripting' started by dominikkoller, Apr 4, 2024.

  1. dominikkoller

    dominikkoller

    Joined:
    Jul 26, 2018
    Posts:
    23
    Hello!

    I want to build a camera application, able to take high quality pictures in Unity. As I understand, cameras on mobile phones often can take videos and pictures, and when they take pictures it is generally higher quality.

    As an example, on web the HTML5 ImageCapture API takes a higher quality image than just a snapshot of a video stream on supported browsers and devices.

    Is this possible at all in Unity, without writing Objective C or native Android Java code? If not, could you point me in the direction of how to build such a native plugin?
     
  2. jmgek

    jmgek

    Joined:
    Dec 9, 2012
    Posts:
    177
    You're not going to like this answer, but I wouldn't be using Unity for device hardware (Assuming you're only looking to use camera hardware). Unity packages are written by third-party developers.

    Compare that to a cross platform framework like flutter, that uses the native camera class.
     
    dominikkoller likes this.
  3. dominikkoller

    dominikkoller

    Joined:
    Jul 26, 2018
    Posts:
    23
    Thanks for you answer! I suppose you're right. In my specific case, there are other reasons for using Unity, I will be looking into a custom solution that uses the native camera classes on Android and iOS.