Search Unity

Resolved AR zoom.

Discussion in 'Unity MARS' started by Nonym, Feb 28, 2021.

  1. Nonym

    Nonym

    Joined:
    Oct 18, 2014
    Posts:
    49
    Hello, I am looking for a way to doing a kind of AR-camera-zoom.
    It's not a special function. I just simply want to enlarge the AR screen displayed on the smart phone screen.
    May I have some tip?
     
  2. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    194
    Hi there! MARS uses AR Foundation to connect to AR hardware and display a camera image. You should be able to follow this thread to get a zoomed-in camera image. https://forum.unity.com/threads/ar-foundation-camera-zoom.724511/

    To get the Camera Background component, you can either use `FindObjectOfType` in some script at startup, or add one to the camera in your scene, and reference it directly.
     
  3. Nonym

    Nonym

    Joined:
    Oct 18, 2014
    Posts:
    49
    wow, that's all I want. thank you so much!
     
    jmunozarUTech likes this.