Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AppInfo

Stores the localized values that describe an Android application in its resources.
Read time 1 minuteLast updated 5 days ago

Definition

public class AppInfo

Remarks

These are the values the operating system shows while the application is not running, such as the name and icon under the launcher entry. Unity reads this object after it generates the Gradle project, resolves each value in every enabled locale, and writes the results as localized Android resources. Each property names the resource it holds the value for. A value is resolved once per locale, so it cannot use Smart Strings; the operating system reads the built resources without Unity running. Configure it before building, and reach it through LocalizationSettings.AndroidAppInfo. No property ever reads as null: assigning null stores an empty value instead, so a property can always be read and configured without a null check.
Additional Resources: LocalizationSettings, AppInfo, Icons
Configure the Android application name before a build.

Examples

using Unity.Localization;using Android = Unity.Localization.Android;namespace Unity.Localization.Samples{ public class AndroidAppInfoExample { public void Run(Android.AppInfo appInfo) { appInfo.DisplayName.SetReference("App Strings", "App Display Name"); } }}

Properties

Property

Description

AdaptiveIconsThe layered launcher icons used from Android 8.0 onwards.
DisplayNameThe user-visible name of the application.
LegacyIconsThe square launcher icons used by devices before adaptive icons.
RoundIconsThe circular launcher icons used by launchers that ask for a round icon.