Skip to content

Releases: Trisibo/unity-webgl-copy-and-paste

Version 1.0.1

04 Mar 04:17

Choose a tag to compare

Fixed CopyToClipboard not working in insecure pages (non-https), or iframes without clipboard permissions.

Added public `CopyToClipboard` method, improved sample

02 Mar 12:36

Choose a tag to compare

  • Added public "CopyToClipboard" method.
  • The "WebGLCopyAndPasteAPI" class is now in the "WebGLCopyAndPaste" namespace.
  • The "WebGLCopyAndPasteAPI" class won't be added (empty) to non-WebGL builds anymore.
  • Improved the sample, and moved it out of the plugin itself.

Made the plugin work when the "WebAssembly.Table" build option is enabled

03 Feb 04:46

Choose a tag to compare

Updated "WebGLCopyAndPaste.jslib" to fix issues and add code to make the plugin work when the "WebAssembly.Table" option is enabled in the player settings.

Added attributes so Unity doesn't strip code

27 Jan 10:56

Choose a tag to compare

Added Preserve attribute to WebGLCopyAndPasteAPI class, and AlwaysLinkAssembly to the assembly, so Unity doesn't strip the code if the plugin is moved to a package

Fixes

27 Jan 10:37

Choose a tag to compare

  • Fixed paste not working on some browsers
  • Fixed labels not being visually updated on some browsers
  • Fixed potential null reference exception when EventSystem.current is null
  • Substituted deprecated JavaScript Window.event