Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Ar Foundation and ARKit not loading Front Facing camera

Discussion in 'AR' started by stuartimagery, Apr 1, 2023.

  1. stuartimagery

    stuartimagery

    Joined:
    Feb 12, 2023
    Posts:
    1
    Hi Everyone working on Create an interactive face filter (https://learn.unity.com/project/interactive-face-filter) and using iPhone Xs Max ios 16.3.1 for testing with Unity 2021.3.19f and Xcode 14.2.

    I cannot get the filter to work with the front the facing camera on the phone. It always goes to the rear.

    Checked Project Settings and ARKit is checked for Face tracking
    AR Session Origin is using Face manager
    AR Camera has AR Camera Manager (Script) set to Facing Direction - User.
    Cannot figure out why it still use the World Camera when launched on iPhone. Any ideas anyone? Thanks
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,018
    It is likely that your app is requesting other features that are only supported in a rear-facing configuration. This creates a conflict that the configuration chooser must resolve. Learn more about the configuration chooser (and how to write your own configuration resolution logic) here:
     
  3. OmerAslam

    OmerAslam

    Joined:
    Sep 7, 2023
    Posts:
    2
    @stuartimagery I was facing the same issue. I have resolved the issue by simply enabling Face Tracking in Apple ARKit settings in Player Settings -> XR Plug-in Management -> Apple ARKit

    Screenshot 2023-10-09 at 5.41.29 PM.png
     
    smanousos and TiagoFer01 like this.