Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity6 support #144

Open
1 of 2 tasks
kou-yeung opened this issue May 14, 2024 · 4 comments
Open
1 of 2 tasks

Unity6 support #144

kou-yeung opened this issue May 14, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@kou-yeung
Copy link
Owner

kou-yeung commented May 14, 2024

  • pc
  • mobile
@kou-yeung kou-yeung added the enhancement New feature or request label May 14, 2024
@kou-yeung kou-yeung self-assigned this May 14, 2024
@kou-yeung
Copy link
Owner Author

kou-yeung commented May 14, 2024

・PC issues
unity 6 build can not copy & paste.
Unity\6000.0.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\CopyPaste.js
↑ was copy text from _GetCopyBufferAsCStr()

reported to unity.


memo :
もし公式サポートしてくれなかったら
・html elemenet の eventListener 複製や上書きできるか検証
 ・できる場合、入力時にevent をどこか保持してから既存の event をクリアし、
  入力完了したら複製したデータで上書きで戻す
・CopyPaste.js には mobile_input という変数を使って分岐してるので mobile_input を乗っ取って処理できるか検証

テストした結果

mobile_input を乗っ取れます!
公式の返信次第対応します

@kou-yeung
Copy link
Owner Author

kou-yeung commented May 15, 2024

モバイルは現状通り公式に任せる形で大丈夫と思います

  • ビルドしてテスト

@dinkelstefan
Copy link

Unity 6.0 Changelog:

  • Web: [Web Platform] Added the ability to copy and paste to and from the Unity player.

Is this plugin still necessary?

@kou-yeung
Copy link
Owner Author

kou-yeung commented May 15, 2024

@dinkelstefan
yes...
because this plugins not only for copy and paste.
WebGLInput plugins make the inputfield to type with IME ( like. Japanese ) >.<

unity just support type with IME on mobile device.
PC still need this plugins. ( i think


it your app only support english. you no need this plugins~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants