Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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:
    188
    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.