Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Matt 18 · Nov 18, 2010 at 06:37 PM · iphonebuildpipelineplayersettings

How Do I Procedurally Change the Icon, Splash Screen, and Version #?

I am using a custom C# script to build both my Lite and Free versions of an iPhone app from a custom menu option.

I am setting the BundleIdentifier, and the Product Name via the PlayerSettings class, and using the BuildPipeline.BuildPlayer function to build my XCode projects.

Is there a way within unity, without resorting to shell scripts, to modify the Icon and Splash Screen for each player, and to a lesser extent, the version # as well?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SoundGuy32 · Jan 21, 2011 at 10:34 AM 0
Share

Did you find a solution? I want to do the same thing.

avatar image BazLevelUp · Jul 27, 2012 at 11:31 AM 0
Share

$$anonymous$$e too, please tell us if you succeeded! :)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Paulius-Liekis · Jul 30, 2012 at 01:26 PM

 PlayerSettings.bundleVersion = bundleVersion;
 PlayerSettings.Android.bundleVersionCode = bundleVersionCode;
 
 Texture2D[] icons = new Texture2D[] {
  AssetDatabase.LoadMainAssetAtPath(srcFolder + "ico_iphone2x.jpg") as Texture2D,
  AssetDatabase.LoadMainAssetAtPath(srcFolder + "ico_ipad.jpg") as Texture2D,
  AssetDatabase.LoadMainAssetAtPath(srcFolder + "ico_iphone.jpg") as Texture2D
 };
  
 PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.iPhone, icons);

You can not change SplashScreen from scripts - there is no API at the moment. So what we do is simply override current splash image by copying over another file (from scripts). Takes a bit longer, because Unity reimports the file, but it does the job :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Adding plugins to XCode project from the command line 1 Answer

Passing parameter with -executeMethod 3 Answers

Set App Icon on PreBuild 0 Answers

If I set PlayerSettings "Target IOS Version" to 4.3 will this exclude iPhones3G and 3GS? 1 Answer

iOS application in the settings panel 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges