Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

AndroidIconSourceType

enumeration

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

Description

Specifies the source type for Android adaptive icon layers.

Use this enum to choose whether adaptive icon layers use per-DPI image textures or resolution-independent Android Vector Drawable XML files.

When set to Image, Unity uses image textures assigned to each Android density. You can configure these using PlayerSettings.SetPlatformIcons.

When set to VectorDrawable, Unity uses Android Vector Drawable XML files imported as a TextAsset for each adaptive icon layer. You can configure these using PlayerSettings.Android.adaptiveIconVectorDrawableBackground, PlayerSettings.Android.adaptiveIconVectorDrawableForeground, and PlayerSettings.Android.adaptiveIconVectorDrawableMonochrome.

Properties

Property Description
ImageUse per-DPI image textures for adaptive icon layers.
VectorDrawableUse resolution-independent Android Vector Drawable XML files for adaptive icon layers.