mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 09:28:07 +08:00
Add missing iOS icons
This commit is contained in:
1 parent
af53118087
commit
c1f3fcb009
2 files changed
+134
-77
No files matched your search
@@ -78,29 +78,45 @@ namespace Editor
|
||||
{
|
||||
PlayerSettings.SetApplicationIdentifier(target,
|
||||
$"{GameConstants.AppIdentifierPrefix}.{appName}");
|
||||
|
||||
|
||||
// Set app icon
|
||||
int[] iconSizes = PlayerSettings.GetIconSizes(target, IconKind.Application);
|
||||
PlayerSettings.SetIcons(target,
|
||||
Enumerable.Repeat(gameIcon, iconSizes.Length).ToArray(),
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(target, IconKind.Application).Length).ToArray(),
|
||||
IconKind.Application);
|
||||
|
||||
// Set iOS store icon which is required for store publishing or TestFlight
|
||||
// Set settings icon
|
||||
PlayerSettings.SetIcons(target,
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(target, IconKind.Settings).Length).ToArray(),
|
||||
IconKind.Settings);
|
||||
|
||||
// Set notification icon
|
||||
PlayerSettings.SetIcons(target,
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(target, IconKind.Notification).Length).ToArray(),
|
||||
IconKind.Notification);
|
||||
|
||||
// Set iOS store and spotlight icon which are required for store publishing or TestFlight
|
||||
if (target == NamedBuildTarget.iOS)
|
||||
{
|
||||
PlayerSettings.SetIcons(target,
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(target, IconKind.Store).Length).ToArray(),
|
||||
IconKind.Store);
|
||||
PlayerSettings.SetIcons(target,
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(target, IconKind.Spotlight).Length).ToArray(),
|
||||
IconKind.Spotlight);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Set default app icon (I don't know why Unity decided to use NamedBuildTarget.Unknown here but it is what it is)
|
||||
{
|
||||
int[] iconSizes = PlayerSettings.GetIconSizes(NamedBuildTarget.Unknown, IconKind.Application);
|
||||
PlayerSettings.SetIcons(NamedBuildTarget.Unknown,
|
||||
Enumerable.Repeat(gameIcon, iconSizes.Length).ToArray(),
|
||||
IconKind.Application);
|
||||
Enumerable.Repeat(gameIcon,
|
||||
PlayerSettings.GetIconSizes(NamedBuildTarget.Unknown, IconKind.Application).Length).ToArray(),
|
||||
IconKind.Application);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -393,78 +393,41 @@ PlayerSettings:
|
||||
m_Kind: 4
|
||||
- m_BuildTarget: tvOS
|
||||
m_Icons: []
|
||||
- m_BuildTarget: Android
|
||||
m_Icons:
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 192
|
||||
m_Height: 192
|
||||
m_Kind: 0
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 144
|
||||
m_Height: 144
|
||||
m_Kind: 0
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 96
|
||||
m_Height: 96
|
||||
m_Kind: 0
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 72
|
||||
m_Height: 72
|
||||
m_Kind: 0
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 48
|
||||
m_Height: 48
|
||||
m_Kind: 0
|
||||
- serializedVersion: 2
|
||||
m_Icon: {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 36
|
||||
m_Height: 36
|
||||
m_Kind: 0
|
||||
m_BuildTargetPlatformIcons:
|
||||
- m_BuildTarget: iPhone
|
||||
m_Icons:
|
||||
- m_Textures:
|
||||
- {fileID: 0}
|
||||
m_Width: 60
|
||||
m_Height: 60
|
||||
m_Kind: 2
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 0}
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 2
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 0}
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 2
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 0}
|
||||
m_Width: 20
|
||||
m_Height: 20
|
||||
m_Kind: 2
|
||||
m_SubKind: iPad
|
||||
- m_Textures: []
|
||||
m_Width: 120
|
||||
m_Height: 120
|
||||
m_Kind: 3
|
||||
m_SubKind: iPhone
|
||||
- m_Textures: []
|
||||
m_Width: 80
|
||||
m_Height: 80
|
||||
m_Kind: 3
|
||||
m_SubKind: iPhone
|
||||
- m_Textures: []
|
||||
m_Width: 80
|
||||
m_Height: 80
|
||||
m_Kind: 3
|
||||
m_SubKind: iPad
|
||||
- m_Textures: []
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 3
|
||||
m_SubKind: iPad
|
||||
- m_Textures: []
|
||||
m_Width: 87
|
||||
m_Height: 87
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures: []
|
||||
m_Width: 58
|
||||
m_Height: 58
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures: []
|
||||
m_Width: 29
|
||||
m_Height: 29
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures: []
|
||||
m_Width: 58
|
||||
m_Height: 58
|
||||
m_Kind: 1
|
||||
m_SubKind: iPad
|
||||
- m_Textures: []
|
||||
m_Width: 29
|
||||
m_Height: 29
|
||||
m_Kind: 1
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 180
|
||||
@@ -495,12 +458,90 @@ PlayerSettings:
|
||||
m_Height: 76
|
||||
m_Kind: 0
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 87
|
||||
m_Height: 87
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 58
|
||||
m_Height: 58
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 29
|
||||
m_Height: 29
|
||||
m_Kind: 1
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 58
|
||||
m_Height: 58
|
||||
m_Kind: 1
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 29
|
||||
m_Height: 29
|
||||
m_Kind: 1
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 60
|
||||
m_Height: 60
|
||||
m_Kind: 2
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 2
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 2
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 20
|
||||
m_Height: 20
|
||||
m_Kind: 2
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 1024
|
||||
m_Height: 1024
|
||||
m_Kind: 4
|
||||
m_SubKind: App Store
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 120
|
||||
m_Height: 120
|
||||
m_Kind: 3
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 80
|
||||
m_Height: 80
|
||||
m_Kind: 3
|
||||
m_SubKind: iPhone
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 80
|
||||
m_Height: 80
|
||||
m_Kind: 3
|
||||
m_SubKind: iPad
|
||||
- m_Textures:
|
||||
- {fileID: 2800000, guid: 6b32649dccc45df4ebe8e3f8eccee249, type: 3}
|
||||
m_Width: 40
|
||||
m_Height: 40
|
||||
m_Kind: 3
|
||||
m_SubKind: iPad
|
||||
- m_BuildTarget: Android
|
||||
m_Icons:
|
||||
- m_Textures: []
|
||||
|
||||
Reference in new issue
Block a user