1. 程式人生 > >【Unity】自定義過場動畫Splash Image

【Unity】自定義過場動畫Splash Image

iOS

How do I make a splash screen?
如何製作啟動畫面?

As part of your game publishing process, you may want to customize the splash screen that appears when launching your game on the device. Unity iOS Basic users can choose between four different orientations of the included splash screen, and Unity iOS Advanced users can use any texture to create their own unique splash screens to be displayed.

作為遊戲釋出過程的一部分,你可能希望你的遊戲啟動時能播放自己定製的畫面。 Unity iOS初級使用者可以從兩個已定義好畫面方向的啟動畫面中選擇一個,高階使用者可以使用任何素材建立自己獨特的啟動畫面。

The splash screen can be customized in Player Settings. The desired splash orientation is specified via the "Default Screen Orientation" Player Settings (Resolution and Presentation section) property.

可以在Player Settings中完成啟動畫面的定製。 在 Player Settings面板的(Resolution and Presentation section)屬性中,通過"Default Screen Orientation"項選擇所需的啟動畫面的方向。

Using one of the included splash screens
使用其中的一個啟動畫面

You can choose one of four default splash screen orientations:

可以選擇4個預設的啟動畫面方向之一:

  1. Portrait - The user interface and splash screen are oriented vertically. The home button is on the bottom
    of the device.
    縱向 - 使用者介面和啟動畫面是垂直方向。home按鈕在裝置的底部。
  2. Portrait Upside Down - The user interface and splash screen are oriented vertically. The home button is on the top of the device.
    縱向倒置 - 使用者介面和啟動畫面是垂直方向。home按鈕在裝置的頂部。
  3. Landscape Right - The user interface and splash screen are oriented horizontally. The home button is on the left side of the device.
    右橫向 - 使用者介面和啟動畫面是水平方向。home按鈕在裝置的左邊。
  4. Landscape Left - The user interface and splash screen are oriented horizontally. The home button is on the right side of the device.
    左橫向 - 使用者介面和啟動畫面是水平方向。home按鈕在裝置的右邊。

Using a unique splash screen (Pro License feature)
使用獨特的啟動畫面(專業版功能)

Unity iOS Pro users can use any texture as a splash screen. The standard splash screen size varies with the device (320x480 pixels for 1-3rd gen devices, 1024x768 for iPad, 640x960 for 4th gen devices). Textures not matching this size will be automatically re-sized. Instructions:

Unity iOS Pro版使用者可以使用任意紋理作為啟動畫面。標準的啟動畫面大小隨裝置不同而變化(320x480畫素,用於1-3代裝置;1024x768畫素,用於iPad;640x960畫素,使用者第4代裝置)。如果紋理不匹配裝置大小,將被自動重新調整大小。說明:

  1. Drop your splash screen texture anywhere in the Assets folder.
    拖動任意啟動畫面紋理到資原始檔夾。
  2. In Player Settings (Splash Image section), select your texture for Mobile Splash Screen, High Res. iPhone or iPad Portrait/Landscape properties. You need to specify only the ones that are applicable for your target device.
    在Player Settings(Splash Image部分),選擇你剛才的紋理作為啟動畫面,注意,高解析度,iPhone或iPad 縱向/橫向屬性。需要裝置指定一個合適的紋理。

That's it! When your game is built, your custom image will be used.

就這樣!當編譯遊戲時,將使用你自定的圖片。

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Android

How do I make a Splash Screen?
如何製作啟動畫面?

As part of your game publishing process, you may want to customize the splash screen that appears when launching your game on the device. Unity Android Basic users can choose between two orientations of the included splash screen, and Unity Android Advanced users can use any texture to create their own unique splash screen to be displayed.

作為遊戲釋出過程的一部分,你可能希望你的遊戲啟動時能播放自己定製的畫面。 Unity Android初級使用者可以從兩個已定義好畫面方向的啟動畫面中選擇一個,高階使用者可以使用任何素材建立自己獨特的啟動畫面。

Customizing the splash screen is performed in Player Settings. The desired splash orientation is specified via "Default Screen Orientation" Player Settings (Resolution and Presentation section) property.

可以在Player Settings中完成啟動畫面的定製。 在 Player Settings面板的(Resolution and Presentation section)屬性中,通過"Default Screen Orientation"項選擇所需的啟動畫面的播放方向。

Using One of the Included Splash Screens
使用其中的一個啟動畫面

You can choose one of four default Splash Screen orientations:

可以選擇4個預設的啟動畫面方向之一:

  1. Portrait - user interface and Splash Screen is oriented vertically. Home button is on the bottom of device.
    縱向 – 使用者介面和啟動畫面是垂直的,主介面按鈕在裝置的正下方。
  2. Portrait Upside Down - falls back to Portrait.
    縱向倒置 – 啟動畫面是倒掛的。
  3. Landscape Left - user interface and Splash Screen is oriented horizontally. Home button is on right side of device.
    左橫向 – 使用者介面和啟動畫面是水平的,主介面按鈕在裝置的右邊。
  4. Landscape Right - falls back to Landscape Left.
    右橫向 – 跟Landscape Left的設定是相反的。

Using a Unique Splash Screen (Pro License feature)
使用獨特的啟動畫面(專業版功能)

Unity Android Pro users can use any texture as a splash screen. Instructions:

Unity Pro版使用者可以使用任意材質去實現啟動畫面:

  1. Drop your texture for Splash Screen anywhere in Assets folder.
    將用於啟動畫面的材質拖拉到Assets 目錄下。
  2. In Player Settings (Splash Image section) select your texture for Mobile Splash Screen property.
    在 Player Settings (Splash Image section) 中選擇好為啟動畫面準備好的素材。
  3. Select a Splash scaling that best suit your needs.
    選擇適合自己的縮放效果。
    • Center (only scale down) will try to draw your image "pixel correct", with no scaling unless needed to fit it on screen.
      居中(只是縮小),以正確的畫素顯示圖片,不會縮放圖片除非需要。
    • Scale to fit (letter-boxed) will try to draw your image full screen, but without cropping it, an fill the empty space with black pixels.
      自適應縮放大小(高寬比不變)嘗試滿屏顯示,但不會裁剪,並用黑色填充空白的地方。
    • Scale to fill (cropped) will draw your image full screen, and cut the parts which extend outside the screen.
      自適應填充(裁切不正的)滿屏顯示,螢幕外的部分將不顯示。

That's it! When your game is built, your custom image will be used.

就這樣!當編譯遊戲時,你自定圖片將被使用上。