docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AppInfo

    Contains all values that can be localized in an Apple Application for iOS, macOS or tvOS. These are values that can be displayed when the App is not running such as the application name displayed on the home screen.

    Inheritance
    object
    AppInfo
    Implements
    IMetadata
    Namespace: UnityEngine.Localization.Platform.iOS
    Assembly: Unity.Localization.dll
    Syntax
    [DisplayName("Apple App Info", null)]
    [Serializable]
    public class AppInfo : IMetadata
    Examples

    This example shows how to configure the AppInfo. Note: You must complete this configuration before the application is built, otherwise, the changes will not be applied.

    using UnityEditor;
    using UnityEngine.Localization;
    using UnityEngine.Localization.Platform.iOS;
    using UnityEngine.Localization.Settings;
    
    public class IosAppInfoExample
    {
        [MenuItem("Localization/Configure iOS App Info")]
        public static void ConfigureAppInfo()
        {
            var appInfo = LocalizationSettings.Metadata.GetMetadata<AppInfo>();
            if (appInfo == null)
            {
                appInfo = new AppInfo();
                LocalizationSettings.Metadata.AddMetadata(appInfo);
            }
    
            appInfo.DisplayName = new LocalizedString("My Table", "My Display Name");
            EditorUtility.SetDirty(LocalizationSettings.Instance);
        }
    }

    Properties

    Name Description
    CameraUsageDescription

    A message that tells the user why the app is requesting access to the device’s camera. NSCameraUsageDescription field in xcode projects info.plist file

    DisplayName

    The user-visible name for the bundle, used by Siri and visible on the iOS Home screen. Use this key if you want a product name that's longer than ShortName. CFBundleDisplayName field in xcode projects info.plist file.

    LocationUsageDescription

    A message that tells the user why the app is requesting access to the user’s location information while the app is running in the foreground. NSLocationWhenInUseUsageDescription field in xcode projects info.plist file.

    MicrophoneUsageDescription

    A message that tells the user why the app is requesting access to the device’s microphone. NSMicrophoneUsageDescription field in xcode projects info.plist file.

    ShortName

    The user-visible name for the bundle, used by Siri and visible on the iOS Home screen. This name can contain up to 15 characters. CFBundleName field in xcode projects info.plist file.

    UserTrackingUsageDescription

    A message that informs the user why an app is requesting permission to use data for tracking the user or the device. NSUserTrackingUsageDescription field in xcode projects info.plist file.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)