包含此页的版本:
不含此页的版本:
You can include color emojis and glyphs in text.
For Editor UI, you can include emojis directly, and it works because the Editor UI uses the default editor font fallbacks.
For runtime UI, you must import a font file with color emojis and set it as the fallback emoji text asset.
Create a color emojis font asset and add it to the UITK Text Settings Fallback.
To include emojis in text, do any of the following:
\U0001F601 to represent a smile.You can prioritize searching the Fallback Emoji Text Assets for emojis. For example, if a font includes black and white emojis, you can choose whether to use emojis from the primary font or the Fallback Emoji Text Assets list.
In UI Builder, select the text element in the Hierarchy panel.
In the Inspector panel, in the Attributes section, enable or disable the Emoji Fallback Support option:
The color emojis feature doesn’t support the following:
Dynamic OS font asset has limited support on some iOS devices. The Apple Color Emoji font file found on macOS and several iOS devices works correctly. However, the Apple Color Emoji-160px found on newer iOS devices isn’t supported. Its emojis are encoded in JPEG format, which isn’t supported by FreeType.