Game Frame X Operation Clipboard
A cross-platform clipboard plugin that enables seamless read/write operations for Android and iOS devices. Provides simple APIs for copying and pasting text between your game and the system clipboard, with optimized code stripping for production builds.
com.gameframex.unity.operationclipboard 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/operationclipboard.git README Markdown
Copy this to your project's README.md
## Installation
Add **Game Frame X Operation Clipboard** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/operationclipboard.git
```
[](https://www.pkglnk.dev/pkg/operationclipboard)README
Unity 读写Android 和 iOS 的粘贴板插件
该库主要服务于 https://github.com/AlianBlank/GameFrameX 作为子库使用。
使用方式(三种方式)
直接在
manifest.json文件中添加以下内容{"com.gameframex.unity.operationclipboard": "https://github.com/AlianBlank/com.gameframex.unity.operationclipboard.git"}在Unity 的
Packages Manager中使用Git URL的方式添加库,地址为:https://github.com/AlianBlank/com.gameframex.unity.operationclipboard.git直接下载仓库放置到Unity 项目的
Packages目录下。会自动加载识别
改动功能
- 增加
link.xml的裁剪过滤
DEMO
using UnityEngine;
public class BlankOperationClipboardDemo : 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);
}
}
No comments yet. Be the first!