Skip to content

Library for working with clipboard from Unity Webgl build.

License

Notifications You must be signed in to change notification settings

arty-F/UniWebGlClipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniWebGlClipboard

Library for working with clipboard from Unity Webgl build.

Install from git URL

Requires a version of unity that supports path query parameter for git packages (Unity 2021.3 or later). You can add a reference https://github.com/arty-F/UniWebGlClipboard.git?path=Assets/UniWebGlClipboard to Package Manager.

Install from .unitypackage

Download the latest .unitypackage file from releases page and import downloaded package into unity.

Usage

Sending text to clipboard:

WebglClipboard.SendToClipboard("you text");

Getting text from clipboard:

WebglClipboard.ReadFromClipboard(OnClipboardReaded);
...
void OnClipboardReaded(string clipboard)
{
    var youText = clipboard;
}

About

Library for working with clipboard from Unity Webgl build.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published