文档

Unity Engine

Unity Engine

SetLaunchScreenImage(Texture2D, iOSLaunchScreenImageType)

Sets the image to display on screen when the game launches for the specified iOS device.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetLaunchScreenImage(Texture2D image, iOSLaunchScreenImageType type)

Parameters

Remarks

This function adds the specified image to the launch screen's Interface Builder (.xib) file in the generated iOS Xcode project. The image is only used by iOSLaunchScreenType.ImageAndBackgroundConstant and iOSLaunchScreenType.ImageAndBackgroundRelative. Use the PlayerSettings.iOS.SetiPhoneLaunchScreenType or PlayerSettings.iOS.SetiPadLaunchScreenType functions to set the launch screen type for your target device.