I’m doing some face tracking and trying to determine the active number of faces being tracked so I can put up an overlay if no faces are in sight.
Reading the docs, it seems like I’m supposed to be subscribing to the ARFaceManager.facesChanged event and keeping track of the added, removed, & updated faces.
Faces get added and updated correctly, but there are never any faces in the ‘removed’ list and the faces never removed from the ‘updated’ list so the number of faces can only go up and never comes down.
The ARFace is being destroyed so somewhere the subsystem is telling it the face is not tracking, but I can’t find a way to get access to that myself.
ARFoundation 3.1.3, Unity 2020.1, iPad Pro 4th Gen