How to put emojis in product name? (iOS/Android)

Android and iOS do support some emojis in product name, but in Unity 2018.3.10f1 Personal I can not insert them in PlayerSettings.

Is there a workaround for both iOS and Android?

Try this:

FIRST OF ALL: BACK UP YOUR ENTIRE PROJECT!!!

If you’re using source control like a good developer, disregard this notice because you’re safe from immune to this kind of damage.

Now in Unity, type in a bogus name in that app name field, then close Unity.

Using a text editor, open the file ProjectSettings/ProjectSettings.asset and go looking for that bogus app name.

Using that same text editor, put in your emoji using the text editor.

Save it and try building from Unity. It might work.

Caveat: I have NOT tried it, I don’t have a recent version of Unity handy to try it, and please be sure you back up your project in case you damage the file with the text editor!

1 Like

Thanks for the reply I’ll try that.

I realized that for iOS I can change it easily in XCode. Is there a similar way for android? Export it as an android project and change there?

Yes, Unity supports exporting a project for Gradle build.

Personally I hate doing fiddly-diddly easy-to-forget post-build steps manually, so I’d try inject the appropriate UTF-8 stuff into Unity first. If Unity chonks it or erases it on project file save, you might be able to make a pre-build step that injects it into the ProjectSettings, then reverts it.

“Personally I hate doing fiddly-diddly easy-to-forget post-build steps manually” so much love for this part! I had the same feeling, that is why I’ve never tried it yet!

“If Unity chonks it or erases it on project file save, you might be able to make a pre-build step that injects it into the ProjectSettings, then reverts it.” - that is a nice idea too! :slight_smile:

I’ll try it soon and let you know how it went - but for now I had too much other tasks to do. I need a couple of days I think.

1 Like

Well when you figure it out, definitely stick it in here, and we can all benefit!

Sure!

Now I had the time solve this problem. Here is the easy solution: just copy the emoji to the product name box - it won’t appear in unity editor, but it will in the build. :smile:

2 Likes

Well that is good to know… THANKS!

I’m guessing that’s just a bug fix on Unity’s side. Have you considered making a blank project, copy/pasting an emoji into the field, and filing a bug with Unity, maybe including a screencap (just put it in the project) of how it doesn’t show?