Skip to main content
New in Unity SDK 2.6.0, which needs the 2.6.0 native SDKs.
The native SDKs draw the reward sheet on Android and iOS. From 2.6.0 the sheet takes its colors, corners, borders, images, and motion from the Style editor in the publisher portal (when the editor is on for your app) and from the variant, with no code. Your code gives it fonts, and on a placement the sheet also reads 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

Reference: Placement().Appearance() and AppearanceConfig.
A Unity font asset is not a native font, so register the font with each platform and pass the name it has there:
  • iOS: add the font file to the Xcode project and list it under UIAppFonts in Info.plist. Pass its PostScript name, for example Nunito-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 than a-z, 0-9, and _ as _, so Nunito-Regular also finds nunito_regular.
The Android bridge finds the resource by name at run time, so with resource shrinking on, keep the fonts with a 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.