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. Dismiss Notice

Question AR camera without all the AR stuff

Discussion in 'AR' started by Mars91, Jun 27, 2023.

  1. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    564
    Hi all,
    I'm working on an android app and I need to 1:1 map camera movement to ingame camera, I'm currently achieving this by just using the AR camera but I don't need all the AR extra feature is possible to just have the camera without all the extra stuff? I don't need the user to walk around or anything else, just the camera look.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    You can get close by using the accelerometer and gyro, but if you want 1:1 movements you gotta use the camera.
    If you just use the AR camera without any extra components it should only run the code for the tracking
     
  3. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    564
    What can I exclude from the scene?

    I currently have

    AR Session origin
    AR Plane Manager
    AR Raycast Manager
    Tracked Pose Driver
    AR Camera Manager
    AR Camera Background
    AR Session
    AR Input Manager
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Safe to remove:

    AR Plane Manager
    AR Raycast Manager

    Not sure if these can be removed:
    AR Camera Manager
    AR Camera Background
    AR Input Manager


    tldr; just try one by one
     
  5. WyattBUnity

    WyattBUnity

    Unity Technologies

    Joined:
    Mar 27, 2023
    Posts:
    31
  6. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    774
  7. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    564
    Thank you all guys.
     
    DevDunk likes this.