All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Operation Clipboard - A cross-platform clipboard access plugin for Unity. Provides unified read/write operations for the system clipboard across platforms:
- Editor/Standalone: TextEditor API
- WebGL: Douyin Mini Game SDK / WeChat Mini Game SDK
- Android: JNI bridge
- iOS: P/Invoke
Includes link.xml for IL2CPP stripping prevention.
Edit your Unity project's Packages/manifest.json and add the scopedRegistries section:
{
"scopedRegistries": [
{
"name": "GameFrameX",
"url": "https://gameframex.upm.alianblank.uk",
"scopes": [
"com.gameframex"
]
}
]
}Then add the package to dependencies:
{
"dependencies": {
"com.gameframex.unity.operationclipboard": "1.2.1"
}
}scopes controls which packages are resolved through this registry. Only packages whose names start with com.gameframex will be fetched from it.
using UnityEngine;
public class ClipboardDemo : MonoBehaviour
{
private string text = "demoText";
private string result = "";
void OnGUI()
{
text = GUILayout.TextField(text, GUILayout.Width(500), GUILayout.Height(100));
if (GUILayout.Button("SetValue", GUILayout.Width(500), GUILayout.Height(100)))
{
BlankOperationClipboard.SetValue(text);
}
if (GUILayout.Button("GetValue", GUILayout.Width(500), GUILayout.Height(100)))
{
result = BlankOperationClipboard.GetValue();
}
GUILayout.Label(result);
}
}| Platform | Supported |
|---|---|
| Windows | Yes |
| macOS | Yes |
| Android | Yes |
| iOS | Yes |
| WebGL (Douyin Mini Game) | Yes |
| WebGL (WeChat Mini Game) | Yes |
- QQ Group: Join via QR Code
See LICENSE.md for license information.