Skip to content

fix(unity): Before generating the sprite asset, reorder the JSON file.#1

Open
AlbertChen85 wants to merge 1 commit intomingos:mainfrom
XRSPACE-Inc:fix/reorder-json-file
Open

fix(unity): Before generating the sprite asset, reorder the JSON file.#1
AlbertChen85 wants to merge 1 commit intomingos:mainfrom
XRSPACE-Inc:fix/reorder-json-file

Conversation

@AlbertChen85
Copy link

When using the package, there's an issue where 🐦 is displayed as 🐦‍🔥.
The reason is that during the sorting process, 🐦‍🔥 is placed before 🐦 in the JSON file.
Both have Unicode starting with 1F426:

  • 🐦 is 1F426
  • 🐦‍🔥 is 1F426-200D-1F525

As a result, when 🐦 is looked up, it matches 1F426-200D-1F525 first and returns the wrong result.
After adjusting the sorting and regenerating the asset file, the display becomes correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant