Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

LocalizationSettings.AppleAppInfo

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static AppInfo AppleAppInfo;

Description

The localized values that describe an Apple application in its property list.

Holds the application name and the permission prompts the operating system shows while the application is not running. Unity reads it when it builds for an Apple platform and writes the values into the generated Xcode project, so configure it before building. Without a registered settings instance this reads as null.

Additional resources: AppInfo, AppInfo

Configure the Apple application name and permission prompts before a build.

using Unity.Localization;
using Apple = Unity.Localization.Apple;

namespace Unity.Localization.Samples { public class AppleAppInfoExample { public void Run(Apple.AppInfo appInfo) { appInfo.ShortName.SetReference("App Strings", "App Short Name"); appInfo.DisplayName.SetReference("App Strings", "App Display Name"); appInfo.CameraUsageDescription.SetReference("App Strings", "Why We Need The Camera"); } } }