- Home /
How to fix the Chrome Web Player Problem
Recently, I have spent quite a bit of time learning Unity 4, and I have to say, I wish I would have done so earlier. To a java guy like me, the fact that you have a running window and rendering system with the press of the play button is already impressive. And things couldn't get better when I found out that I could publish my games, for free, on my website writing little of the html code. But when things can't get any better, they have to get worse; I have heard rumors that the latest version of Chrome doesn't support Unity 4's Web Player anymore because of how it was written.
So, I have a Ludum Dare Game Competition tomorrow, and am in a pickle. I don't want to make a game that people with the newest version the most popular browser (chrome) can't play, but I also don't want to make a game that might not work because of incomplete features in the Web GL version of Unity.
In short, what I want to know is:
Is this newest version of Chrome going to be something many people have, or just a few, ignorable people?
If I download and learn how to use Unity 5 in the next day, will I be able to publish a working game in their Web GL, or will I have to use Unity Web Player anyway?
If I can use this new system, is there any easy way to get this into HTML code, like in the Web Player, that I can put on my website (I mean, they made an html document that you can just copy and paste from, will the new version be anywhere close to this user friendly)?
Is there a way for someone who knows little HTML to make it so that I support BOTH unity players, and only show the preferred one (working one, or the web player if they both work)?
Thank you so much for your help in advance!
Answer by Schubkraft · Apr 20, 2015 at 11:28 AM
1) Newest Chrome version will be used by a very big share of the overall browser users. Just google browser market share.
2) You can use both.
3) WebGL also supports custom templates like the Webplayer does which work pretty much the same. (have a bug on Windows atm though http://issuetracker.unity3d.com/issues/windows-failure-to-build-with-custom-webgl-template)
4) There is no such thing officially but look at the manual how the UnityObject2.js works and you can make the changes yourself.
Great! Thanks; this was an extremely helpful and informative answer-exactly what I was looking for!
Answer by captainkrisu · Apr 20, 2015 at 02:47 PM
Enable NPAPI in Chrome settings.
This will only work until this fall (fall 2015 it will be ended completely) and telling someone they have to go back and change their settings in order to play this game is not quite the route I want to take. Thanks for the suggestion, though!