-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
public void RequestSceneCapture()
{
if (m_ARSession == null)
{
Debug.LogError("AR Session is null, so scene capture cannot be requested.", this);
return;
}
if (m_ARSession.subsystem == null)
{
Debug.LogError("Session subsystem is null, so scene capture cannot be requested. Are your XR Plug-in Management settings correct?");
return;
}
#if METAOPENXR_0_2_OR_NEWER && UNITY_ANDROID
var success = (m_ARSession.subsystem as MetaOpenXRSessionSubsystem)?.TryRequestSceneCapture() ?? false;
Debug.Log($"Meta OpenXR scene capture completed request with result: {success}");
#else
Debug.LogError("Meta-OpenXR is not installed. Please install the package \"Unity OpenXR: Meta\" version 0.2 or newer to use scene capture.");
#endif
}
I click cancel in the window, I don't need to update the reason, after I return to unity my background is black and there should be a picture from the camera
Unity 6000.1.13f1
AR Foundation 6.2.0