Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

com.hecomi.udesktopduplication

hecomi200MIT License1.8.1

Desktop Duplication API implementation for Unity (only for Windows 8/10)

unity, screen-capture, desktop-capture, native-plugin

readme

uDesktopDuplication

uDesktopDuplication is an Unity asset to use the realtime screen capture as Texture2D using Desktop Duplication API.

ScreenShot

uDesktopDuplication

Environment

  • Windows 8 / 10

Install

  • Unity Package
  • Git URL (UPM)
    • Add https://github.com/hecomi/uDesktopDuplication.git#upm to Package Manager.
  • Scoped Registry (UPM)
    • Add a scoped registry to your project.
      • URL: https://registry.npmjs.com
      • Scope: com.hecomi
    • Install uDesktopDuplication in Package Manager.

Usage

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.