uDesktopDuplication is an Unity asset to use the realtime screen capture as Texture2D
using Desktop Duplication API.
https://github.com/hecomi/uDesktopDuplication.git#upm
to Package Manager.https://registry.npmjs.com
com.hecomi
Attach uDesktopDuplication/Texture
component to the target object, then its main texture will be replaced with the captured screen. Please see sample scenes for more details.