Skip to content

[Bug] Meta Quest 3 TryRequestSceneCapture (Cancel) black background #1213

@Avatarchik

Description

@Avatarchik
   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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bugfixedFixed in newer release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions