Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

2022.3.54f1

6000.0.31f1

6000.1.0a8

6000.2.0a1

Issue ID

UUM-90999

Regression

No

[Windows] Unicode custom text input window shows question marks when inserting an emoji

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Build and Run the “Scenes/SampleScene” Scene
3. In Player, select the white text input field at the top left
4. Press the “Win” key and “.“ at the same time
5. Select any emoji from the emoji keyboard
6. Observe the white text input field

Expected result: Selected emoji is present
Actual result: Question marks are present

Reproducible with: 2021.3.45f1, 2022.3.54f1, 6000.0.31f1, 6000.1.0a8

Reproducible on:
Windows Standalone Player

Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: Windows 11

Note:
- IsWindowUnicode() returns true for both windows

Customer notes:
- We have an idea about this strange behavior. Unity uses GetMessage and PeekMessage methods in the main window loop. Possibly, UnityPlayer.dll was built without "UNICODE" defined. In that case, ANSI versions of these methods were used (GetMessageA and PeekMessageA respectively). Instead of GetMessageW and PeekMessageW. We used DllViewer and looks like UnityPlayer.dll linked to GetMessageA and PeekMessageA version only.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.