An open API service indexing awesome lists of open source software.

https://github.com/haoming02/image-clipboard-for-unity

Paste image into UnityEngine as Texture2D
https://github.com/haoming02/image-clipboard-for-unity

clipboard image-paste unity

Last synced: 2 months ago
JSON representation

Paste image into UnityEngine as Texture2D

Awesome Lists containing this project

README

          

# Image Clipboard for Unity
A simple script that allows you to paste images into Unity applications

> [!Important]
> Since the script uses functions from `user32.dll`, it is only usable on **Windows** systems

### How to Use
Simply call the `NativeClipboard.Paste` function, which returns `true` on a successful paste along with the `Texture2D`.

> [!Note]
> - Works on images right-click copied from browser
> - Works on screenshots from `Snipping Tool` *(`Win + Shift + S`)*
> - Tested with **Unity 6** and **Edge** browser on **Windows 11**
> - Does **not** work when copying an image file from `file explorer`


Special Thanks: Gemini 2.5 Pro