hecomi / uWindowCapture

This allows you to use Windows Graphics Capture / PrintWindow / BitBlt in Windows to capture multiple windows individually and easily use them as Texture2D in Unity.
https://tips.hecomi.com/entry/2021/04/30/230322
MIT License
505 stars 81 forks source link

Resizing a captured window causes black window in Unity (WGC) #27

Closed Curtis-VL closed 3 years ago

Curtis-VL commented 3 years ago

Resizing a captured window causes black window in Unity when using Windows.Graphics.Capture.

Curtis-VL commented 3 years ago

To update you on this, the Texture2D appears to be correct, but within Unity's 'Game' view the window becomes black. :)

hecomi commented 3 years ago

Was the version that you used v1.0.1 or v1.0.0?

Curtis-VL commented 3 years ago

Tested now with v1.0.1 and can still reproduce the issue.

Here is a video demonstrating the issue: https://gyazo.com/d0e399ccaab525560d4133e0f029e05f

hecomi commented 3 years ago

I was able to reproduce the bug and will fix it as soon as possible.

hecomi commented 3 years ago

v1.0.2 fixed this problem🎉 Thank you for your report.

Curtis-VL commented 3 years ago

Confirmed fixed, thank you!