MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Hololens Video recording & images not showing UI elements

Open Spoon2311 opened this issue 5 years ago • 3 comments

Describe the bug

We're working with the Hololens 2 and sadly when recording a video, taking an image or going into the live-view, Unity UI-components are not shown in the image/video.

We are using: We're using Unity 2020.3.6f1, MRTK 2.7.2 with OpenXR backend.

To reproduce

Open a Unity project with MRTK 2.7.2 and OpenXR backend.

Create a Window and put one TextMeshPro-Component and a TextMeshProUGUI-Component on it.

When building the application and running it on Hololens 2, both are visible within the device.

Start a recording of what you see through the Hololens 2 or take an image. (You can use voice command or using the main-menu and the corresponding media capture function)

Once the video/photo is saved open the device portal and download the made video/photo.

Opening the photo/video only the TextMeshPro-Component is visible while the TextMeshProUGUI is not.

(You can also use the live-preview, instead of recording a video and the same behaviour should show as if you'd record the scene)

Expected behavior

I would expect the video/photo to render also Unity UI-Components

Screenshots

hqkv6 An image of the scene when capturing it with an image. The title above is a TextMeshPro-Component, below the red line there is text visible for me in the Hololens 2.

Your setup (please complete the following information)

  • Unity Version [ 2020.3.6f1]
  • MRTK Version [2.7.2]
  • OpenXR backen

Target platform (please complete the following information)

  • HoloLens 2

Additional context

Add any other context about the problem here.

Spoon2311 avatar Aug 12 '21 17:08 Spoon2311

This was a bug in the Unity engine. It should be fixed on 2020.3.8f1, 2021.2.0a17, and 2021.1.7f1. Looks like you're on 2020.3.6, so you'll need to update if possible.

keveleigh avatar Aug 12 '21 17:08 keveleigh

This was a bug in the Unity engine. It should be fixed on 2020.3.8f1, 2021.2.0a17, and 2021.1.7f1. Looks like you're on 2020.3.6, so you'll need to update if possible.

Thanks a lot for the answer it was a simple issue of updating! 👍 Problem solved now.

Spoon2311 avatar Aug 15 '21 06:08 Spoon2311

hello @Spoon2311 I would like to ask how to implement hololens2 video recording function in unity, Thank U...

wh569860630 avatar Jun 10 '23 05:06 wh569860630