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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

ARFoundation 4.1: No Face Subsystems detected

Discussion in 'AR' started by waldgeist, Aug 11, 2020.

  1. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    288
    I am using this code in ARFoundation 4.0.6 to detect if face detection is possible:

    Code (CSharp):
    1.  
    2. var descriptors = new List<XRFaceSubsystemDescriptor>();
    3. SubsystemManager.GetSubsystemDescriptors(descriptors);
    4. if (descriptors.Any()) _faceTrackingDescriptor = descriptors.First();
    5.  
    This works fine on my iPhone X.

    But since I upgraded all ARFoundation packages to 4.1, no face tracking descriptors can be found anymore. The list is empty.

    What might be the reason for this? I cannot find any changes regarding face tracking in the change logs.
     
  2. Ndupker

    Ndupker

    Joined:
    Jul 3, 2018
    Posts:
    6
  3. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    288
  4. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    288
    I just found out what the root cause is: The newer ARKit package adds a new option to the ARKit project settings: "Face Tracking". This has not been enabled by default. After I ticket the box, the descriptor becomes available.
     
    andyb-unity likes this.