Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 59fc56f

Browse files
author
Yuncong Zhang
committed
Put Debug.Log in emoji in assert.
1 parent 5b0d9e4 commit 59fc56f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtime/ui/txt/emoji.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ public static Rect getUVRect(int code) {
250250
1.0f / colCount, 1.0f / rowCount);
251251
}
252252

253-
Debug.LogWarning($"Unrecognized unicode for emoji {code:x}");
253+
D.assert(() => {
254+
Debug.LogWarning($"Unrecognized unicode for emoji {code:x}");
255+
return true;
256+
});
254257
return Rect.fromLTWH(0, 0, 0, 0);
255258
}
256259

0 commit comments

Comments
 (0)