Enable Japanese input in WebGL

Page update date :
Page creation date :

Verification environment

Windows
  • Windows 11
Unity Editor
  • 2020.3.25f1

Prerequisites for this tip

The following settings have been made in advance as a prerequisite for the explanation of these tips.

Fonts used in this sample

衡山毛筆フォント行書 is used. You can download it from the following site.

On WebGL, Japanese input is not possible in the default input field

Japanese input is possible for the minute you place the input field and run it as a Windows game. Other operating systems are no problem.

However, if you run this on WebGL, you will not be able to input Japanese.

The cause is not clear, but it is due to the fact that the IME is not enabled.

Make it possible to input Japanese

The following WebGLInput volunteer packages can be used to solve most of the problems with WebGL Japanese input.

First, open the download page below. WebGLSupport.unitypackage Please download the latest version.

Once downloaded, import the "Custom Package" from the menu.

Select the downloaded file.

Import all.

The imported package must be attached to the respective input field. First, place the input field you want to apply and make it selected.

Since has been added to Assets WebGLSupport the project, WebGLSupport > WebGLInput WebGLInput attach to the input field.

Although it is not directly related to this Japanese input, the Arial font does not contain Japanese. Specify a font that contains Japanese in the input field.

Try running it on WebGL in this state. If you can enter Japanese correctly, it is OK.

It is also possible to paste Japanese text.

Note, however, that this package doesn't even allow you to enter alphanumeric characters when you display WebGL in full screen (for some reason, it always selects everything). If you don't support full screen, this package is sufficient.