UniText

Support

Questions and answers

Migration from TextMesh Pro, fonts, build size, rendering and performance.

Migrating from TextMesh Pro

Can an existing TextMesh Pro project be converted automatically?

Yes. Tools → LightSide → UniText → Migration scans the project and converts it in four ordered stages: fonts with their fallback chains, components including input fields, C# scripts with their assembly definitions, and a checklist of what is left by hand. It repairs references, UnityEvent calls and prefab overrides, and lists every setting it could not carry over. The tool ships with the licensed versions; the free UniText 1.0.0 does not include it.

Read the migration guide →

Build Size & Distribution

What does UniText add to a build?

The managed code, the native library for each target platform and the font assets the project uses. Glyph atlases are not stored in the build: they are generated at runtime. Original .ttf and .otf files are Editor-only references, and the Editor native library is never included in a player.

Are the original font files required in a build?

Font assets carry their own payload; original .ttf and .otf files are Editor-only references. Native players read a disk cache, while WebGL embeds the data.

Must a font file be imported into the project?

No. The font tool can create a UniTextFont asset from a file anywhere on disk.

How much space do the native libraries take?

Uncompressed, the player library takes about 2–3 MB per Android ABI, 3 MB on Windows x64, 4 MB on Linux x64 and 5.5 MB on macOS, plus helper libraries under 0.3 MB for system fonts and native input on Windows and macOS. iOS, tvOS, visionOS and WebGL link static libraries into the application, so their final share depends on the linker and stripping.

How does UniText handle large CJK fonts?

Glyphs are rasterized when text first displays them, so a CJK font is never baked into an atlas ahead of time and only the characters actually shown take atlas space. System fonts already cover Chinese, Japanese and Korean on desktop and mobile, and in WebGL builds the browser draws them with the device's fonts, so no font file is needed. A custom CJK font is read from disk on demand through Font Memory Mapping rather than loaded whole into memory; WebGL builds keep custom font data in memory.

Can fonts load from a server?

Font bytes can be downloaded by the project and passed to UniTextFont.CreateFontAsset(byte[]). The package also provides font subsetting and compression tools.

Fonts & System Fonts

How does UniText work without assigned fonts?

A text without an assigned font uses the operating system's default font. For each text run, UniText asks the platform's own font fallback for a font that covers that run's language: DirectWrite on Windows, CoreText on Apple platforms, AFontMatcher on Android and fontconfig on Linux. In WebGL builds the browser draws system fonts with its own fallback. Custom font files stay optional on every platform.

Are system fonts available on WebGL?

Yes, since UniText 3.43.0. WebGL builds draw system fonts through the browser, with the fonts of the device the page runs on and the browser's own fallback, so a build renders text without a bundled font. OpenType feature settings and variable-font axes other than weight and slant then follow the browser. Assign font assets, or load font bytes at runtime, when every device must show the same design. Emoji use the browser's own rendering.

Font Memory Mapping

Large font files are read from disk on demand without a full managed copy in memory. Unused font assets stay compressed. WebGL and embedded Editor assets use in-memory font data. File-backed fonts use memory mapping.

Pixel-perfect fonts

Crisp pixels, automatic grid detection and pixel-aligned effects and animation. Vector pixel fonts and bitmap-only fonts share the same style system. Whole multiples of Pixel Grid render pixel-exact. Snap To Pixel Grid also aligns effects and animation; disabling it permits subpixel motion.

Glyph Atlas — SDF Detail & Tile Size

What do SDF Detail and Tile Size Offset control?

Both affect glyph resolution in the runtime atlas. SDF Detail adjusts the contour-complexity estimate. Tile Size Offset shifts the chosen size within the 64, 128 and 256 pixel tiers.

How does glyph resolution affect performance?

The final tile size determines rasterization, upload and atlas memory cost. Different settings that select the same tile size have the same tile cost.

Runtime Performance

When are glyphs rasterized?

In the canvas update where a text first displays them. All glyphs that changed texts need are collected in one pass, rasterized by Burst jobs and uploaded to the atlas before any mesh is built. A glyph stays cached until its atlas tile is evicted or invalidated, so later texts reuse it without rasterizing it again.

What costs time when new text appears?

Parsing, shaping and layout of the new text, plus rasterizing and uploading glyphs that are not in the atlas yet. Shaping results are cached per paragraph and per word, so repeated paragraphs and words skip shaping, and text made of cached glyphs needs no rasterization. The frame that first shows many new glyphs, such as a new language, costs the most.

Where does parallel processing run?

On UniText's own worker threads, one fewer than the CPU core count, together with the main thread. All changed components are processed in one batch: Unity APIs are read on the main thread before it, and results are committed there after it. Glyph rasterization runs as Burst jobs. WebGL and single-core devices process on the main thread, and UniTextBase.UseParallel turns parallel processing off.

How are updates scheduled?

A change marks the component dirty instead of rebuilding it at once. Once per canvas update, before uGUI renders, UniText processes every dirty component in one pass, so several changes in a frame cost one rebuild. Each change reruns only the stage it affects: new text is parsed and shaped again, a font size change reflows lines, alignment re-places glyphs, and a color change rebuilds at most the mesh. An alpha change never rebuilds the mesh.

Support and discussion

Discord is the main channel for questions, help and discussion. Bug reports and feature requests go to the public issue tracker.