Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kou-yeung/webglinput
IME for Unity WebGL
https://github.com/kou-yeung/webglinput
ime unity webgl
Last synced: 4 days ago
JSON representation
IME for Unity WebGL
- Host: GitHub
- URL: https://github.com/kou-yeung/webglinput
- Owner: kou-yeung
- License: mit
- Created: 2018-11-26T06:04:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T08:03:48.000Z (23 days ago)
- Last Synced: 2025-01-10T21:05:31.766Z (11 days ago)
- Topics: ime, unity, webgl
- Language: C#
- Homepage:
- Size: 12.4 MB
- Stars: 799
- Watchers: 18
- Forks: 115
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# WebGLInput
IME for Unity WebGL ( Support TextMesh Pro from Unity2018.2 )
support “copy and paste”
support "tab" and "shift+tab" change focus to other InputField
support mobile. (Experiment)
support UI Toolkit. (Experiment) (Support from Unity2022)
# DEMO
Build with Unity's WebGL Template ( Unity2023.2.2f1 )
[Default](https://kou-yeung.github.io/webgl_input_sample/default/index.html)
[Minimal](https://kou-yeung.github.io/webgl_input_sample/minimal/index.html)
[PWA](https://kou-yeung.github.io/webgl_input_sample/pwa/index.html)
# How to use
1.download [WebGLSupport.unitypackage](https://github.com/kou-yeung/WebGLInput/releases) and import to project2.add "WebGLInput" Component to InputField GameObject
3.build and run!!
no need to setting anything.
# insert \t use tab key instead of changing focus
Add "WEBGLINPUT_TAB" to Scripting Define Symbols.and check "Enable Tab Text" at WebGLInput.
# fullscreen support
Call
```
WebGLSupport.WebGLWindow.SwitchFullscreen();
```
to switch fullscreen mode.# Experimental : Support UI Toolkit
sample code
```
[SerializeField] UIDocument uiDocument;
public void Start()
{
// find all TextField element
uiDocument.rootVisualElement.Query().ForEach(v =>
{
// add WebGLInputManipulator to TextField
v.AddManipulator(new WebGLSupport.WebGLInputManipulator());
});
}
```