文档

Unity Engine

Unity Engine

AndroidAppInfo

The localized values that describe an Android application in its resources.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public static AppInfo AndroidAppInfo { get; }

Remarks

Holds the application name and the launcher icons the operating system shows while the application is not running. Unity reads it when it builds an Android player and writes the values as localized resources, so configure it before building. Without a registered settings instance this reads as null.
Additional Resources: AppInfo, AppInfo
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"); } }}