ARKit ARFace tracking help

  • I have a 3D head model (human head, avatar, etc.) being downloaded and rendered in runtime.
  • My scene has “AR Session”, and “AR Session Origin” game objects with the appropriate components.

My 3D head model has “ARFace” component being added when the model is created.
When I run my game, I expect my 3D head model to appear on my face.
However it does not work like that. What I get is my AR Camera being instantiated at the same position with my 3D head model. I also cannot add offset to my AR Camera, because it’s being overridden by AR face tracking. And if I add a position offset to my AR Session Origin, well my avatar gets visually offset but still not applied as an ARFace.
Also, when I feed my **ARFace.**trackableId into the ARFaceManager.trackables.TryGetTrackable - the result is false.

*Also, my head has blendshapes that are fully aligned with unity blendshape naming convention, so they should work as well. However they do not.

I couldn’t find any adequate information regarding all of this. Are there really no info on this matter or I am doing this wrong?

I’d recommend poking through our face tracking sample scenes to see how they are set up: GitHub - Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation

I agree that our face tracking documentation needs improvement; it’s on our road map.