Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Unity 5 Beta v21 Android Product Name

Discussion in 'Unity 5 Pre-order Beta' started by Applava, Jan 30, 2015.

  1. Applava

    Applava

    Joined:
    Nov 3, 2014
    Posts:
    1
    After Android project build with Unity 5 Beta v21 the product name is amended replacing all the spaces with underscore sign "_". So for example instead of "Galaxy Space Shooter" under the app icon is written "Galaxy_Space_Shooter". How to have spaces in Product Name? The product name written in Editor is with spaces, but not in final build.
     
  2. grosssmutttr

    grosssmutttr

    Joined:
    Apr 15, 2014
    Posts:
    168
    I also recognized this and submitted a bug ;)
     
  3. Phuzz

    Phuzz

    Joined:
    Mar 31, 2014
    Posts:
    48
    Hello,

    any Updates on this? or workarounds? :)
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Well you should try Unity 5 RC2, and see
     
  5. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    I've also experienced this problem in 5.0.0f2. And in addition, all "&" chracters are also replaced by underscores. I had a problem with my game called "Plug & Play" which was transformed to "Plug___Play" on the device.

    As a workaround you can write the name directly into a custom android manifest (encode "&" by "&")

    That's the default android manifest with the changed name (at two places):

    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest
    3.     xmlns:android="http://schemas.android.com/apk/res/android"
    4.     package="com.unity3d.player"
    5.     android:installLocation="preferExternal"
    6.     android:versionCode="1"
    7.     android:versionName="1.0">
    8.     <supports-screens
    9.         android:smallScreens="true"
    10.         android:normalScreens="true"
    11.         android:largeScreens="true"
    12.         android:xlargeScreens="true"
    13.         android:anyDensity="true"/>
    14.  
    15.     <application
    16.         android:theme="@android:style/Theme.NoTitleBar"
    17.         android:icon="@drawable/app_icon"
    18.         android:label="Plug &amp; Play"
    19.         android:debuggable="true">
    20.         <activity android:name="com.unity3d.player.UnityPlayerActivity"
    21.                   android:label="Plug &amp; Play">
    22.             <intent-filter>
    23.                 <action android:name="android.intent.action.MAIN" />
    24.                 <category android:name="android.intent.category.LAUNCHER" />
    25.             </intent-filter>
    26.             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    27.         </activity>
    28.     </application>
    29. </manifest>
    30.  
     
  6. Phuzz

    Phuzz

    Joined:
    Mar 31, 2014
    Posts:
    48
    Oh sweet and simple workaround :) thank you very much