浏览代码

Merge pull request #374 from UnityTech/fix_emoji

Fix emoji
/main
GitHub 5 年前
当前提交
c0435391
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/ui/txt/emoji.cs
  2. 0
      /Runtime/Resources/images/EmojiIOS13.2.png.meta
  3. 0
      /Runtime/Resources/images/EmojiIOS13.2.png

4
Runtime/ui/txt/emoji.cs


D.assert(emojiCodes != null && emojiCodes.isNotEmpty());
D.assert(spriteSheetNumberOfColumns > 0);
D.assert(spriteSheetNumberOfRows > 0);
D.assert(emojiCodes.Count >= spriteSheetNumberOfColumns * spriteSheetNumberOfRows);
D.assert(emojiCodes.Count <= spriteSheetNumberOfColumns * spriteSheetNumberOfRows);
this.spriteSheetAssetName = spriteSheetAssetName;
this.emojiLookupTable = new Dictionary<int, int>();
for (int i = 0; i < emojiCodes.Count; i++) {

);
public static readonly EmojiResourceConfiguration appleEmojiConfiguration = new EmojiResourceConfiguration(
"images/EmojiIOS12.3",
"images/EmojiIOS13.2",
emojiCodes: new List<int> {
0x1f004, 0x1f0cf, 0x1f170, 0x1f171, 0x1f17e, 0x1f17f, 0x1f18e,
0x1f191, 0x1f192, 0x1f193, 0x1f194, 0x1f195, 0x1f196, 0x1f197,

/Runtime/Resources/images/EmojiIOS12.3.png.meta → /Runtime/Resources/images/EmojiIOS13.2.png.meta

/Runtime/Resources/images/EmojiIOS12.3.png → /Runtime/Resources/images/EmojiIOS13.2.png

正在加载...
取消
保存