Home
Softono
com.gameframex.unity.operationclipboard

com.gameframex.unity.operationclipboard

Open source Apache-2.0 C#
14
Stars
4
Forks
0
Issues
1
Watchers
1 week
Last Commit

About com.gameframex.unity.operationclipboard

GameFrameX Unity Clipboard component for cross-platform copy and paste operations with text and data support

Platforms

Web Self-hosted Windows Android

Languages

C#
Game Frame X Logo

Game Frame X Operation Clipboard

License Version Unity Version Documentation

All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams


Documentation · Quick Start · QQ Group: 467608841 / 233840761


English | 简体中文 | 繁體中文 | 日本語 | 한국어

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:

  1. 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"
          ]
        }
      ],
      "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.

  2. Add to manifest.json dependencies:

    {
       "com.gameframex.unity.operationclipboard": "https://github.com/gameframex/com.gameframex.unity.operationclipboard.git"
    }
  3. Use Package Manager in Unity with Git URL: https://github.com/gameframex/com.gameframex.unity.operationclipboard.git

  4. Clone the repository into your Unity project's Packages directory. 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

Dependencies

Package Description
(无) -

Changelog

See Releases for changelog.

License

See LICENSE.md for license information.