ARKit Scan Surface

I’ve seen this feature in many AR apps, but can’t seem to figure out how it is done. When the games is first launched, how do you know when ARKit has detected a surface?

Thank you

You can register ARFrameUpdateEvent, and check if detected surface:

List planes = unityARAnchorManager.GetCurrentPlaneAnchors();
if (planes.Count > 0)
{
// You got your surface
}