New in Unity SDK 2.6.0, which needs the 2.6.0 native SDKs.
AccentColor, BackgroundColor, and TextColor: see AppearanceConfig. The per-component components map of the native SDKs is not in the Unity SDK.
Give the sheet your fonts
Placement().Appearance() and AppearanceConfig.
- iOS: add the font file to the Xcode project and list it under
UIAppFontsinInfo.plist. Pass its PostScript name, for exampleNunito-Regular. - Android: add the font file as a font resource (
res/font/nunito_regular.ttf, in an Android library plugin). Pass the resource name,nunito_regular. A name that is not a resource is tried in lowercase, with any character other thana-z,0-9, and_as_, soNunito-Regularalso findsnunito_regular.
res/raw/keep.xml that has tools:keep="@font/*".
A blank or unknown name, or a font that cannot load, draws the system font. Only a placement’s appearance styles the sheet: a gift button’s appearance ignores Sheet. WebGL ignores Sheet.
Styles from the Style editor and motion
On Android and iOS, colors, corners, borders, images, and motion that the Style editor sets reach the sheet with no code. A Lottie animation plays only when the game links Lottie (lottie-ios 4.x, com.airbnb.android:lottie 5.2 or later). Without it, the element draws as it did before 2.6.0.
In a Unity WebGL build, the sheet comes from the web SDK 2.6.0 UMD script. It takes the Style editor’s styles too, and shows a still image in place of a Lottie animation.