I have tried the screenshot-taking feature of xrExtras and it works great when I click the capture button. I am using it to capture my images using the front camera of my device. But the capture button is always active and interactable until a screenshot has not been taken. I want to know if I can keep the capture button un-interactable unless the user places his/her face inside a marked area(a marked area could be a semi-transparent 2D image of a human head shape). Removing the head from the marked area, the capture button should be un-interactable again. Is it possible to achieve this?
Hey! You can use xrface and listen for xrfacefound for details on the position of the face once itβs found and make sure that when the position is not within the selected area, just use css to gray the ui and remove the pointer events from the capture button, then do the opposite when the position does match the area you want.