Game Frame X Operation Clipboard
All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Documentation · Quick Start · QQ Group: 467608841 / 233840761
Project Overview
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.
Quick Start
Installation
Choose one of the following methods:
-
Edit your Unity project's
Packages/manifest.jsonand add thescopedRegistriessection:{ "scopedRegistries": [ { "name": "GameFrameX", "url": "https://gameframex.upm.alianblank.uk", "scopes": [ "com.gameframex" ] } ], "dependencies": { "com.gameframex.unity.operationclipboard": "1.2.1" } }scopescontrols which packages are resolved through this registry. Only packages whose names start withcom.gameframexwill be fetched from it. -
Add to
manifest.jsondependencies:{ "com.gameframex.unity.operationclipboard": "https://github.com/gameframex/com.gameframex.unity.operationclipboard.git" } -
Use Package Manager in Unity with Git URL:
https://github.com/gameframex/com.gameframex.unity.operationclipboard.git -
Clone the repository into your Unity project's
Packagesdirectory. It will be loaded automatically.Usage Examples
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 Support
| Platform | Supported |
|---|---|
| Windows | Yes |
| macOS | Yes |
| Android | Yes |
| iOS | Yes |
| WebGL (Douyin Mini Game) | Yes |
| WebGL (WeChat Mini Game) | Yes |
Documentation & Resources
Community & Support
- QQ Group: Join via QR Code
Dependencies
| Package | Description |
|---|---|
| (无) | - |
Changelog
See Releases for changelog.
License
See LICENSE.md for license information.