WebGLInput
IME for Unity WebGL
Install / Use
/learn @kou-yeung/WebGLInputREADME
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 )
How to use
1.download WebGLSupport.unitypackage and import to project
or add https://github.com/kou-yeung/WebGLInput.git?path=Assets/WebGLSupport from Package Manager
2.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<TextField>().ForEach(v =>
{
// add WebGLInputManipulator to TextField
v.AddManipulator(new WebGLSupport.WebGLInputManipulator());
});
}
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
