Disclaimer: Google is trying to get rid of Chrome apps on Windows, OS X and Linux in favor of webapps and Chrome extensions. The best use of this editor extension is for targeting ChromeOS which “will remain supported and maintained for the foreseeable future.”
read more about it here: https://blog.chromium.org/2016/08/from-chrome-apps-to-web.html
Since Google is killing chrome apps for Chrome on Windows, OS X and Linux, and now supporting Android on ChromeOS, I don’t see the value in maintaining this repo.
Chrome App Builder
Chrome app builder is an editor extension and API for Unity3D to export games as google chrome apps. It is designed to look just like the build settings of other platforms.
Bad builds with pre-built engine option.
How does it work?
Mostly, it is based on the webgl player of unity, which means the WebGL module for unity needs to be installed. Combined with a template, and and an extension to fix the chrome related stuff, and it’s all good. In addition, it offers an API to access chrome functions from within unity.
Just add the content of the assets folder into the assets folder of your project. Choose “window -> chrome app builder” to access the different settings and the build button!
Is it on the asset store?
No, but it should be. I guess because of the nature of the constant change of the way the WebGL player works, it is hard to maintain this project for many Unity versions.
You need unity3d installed (
5.3 and above recommended you probably need the latest version, since Chrome app builder uses private unity apis that keep changing all the time, and we try to keep up and update it. so best way is to test.) with unity webgl module. And of course, you need google chrome on your computer.
Last commit worked with: Unity 2017.3.0f2
Calling Chrome API from Unity can be done from the following classes:
Chrome.App.Browser//To open a web page in a new tab ref
Chrome.App.Identity//To get information about the currently connected user on Chrome ref
Chrome.App.Notification//To display notifications ref
Chrome.App.Power//For power management ref
Chrome.App.Window//For window related operations (maximize, minimize, fullscreen, etc.) ref
Chrome.Social namespace can be used to use OAuth on various social media (Facebook, Linkedin, Instagram)
- Fix template manager so it works EXACTLY as the internal unity template manager
- Add demo scene (one that doesn’t suck)
- Implement getAuthToken
- Add more chrome APIs (Native sockets, In-app purchase and so on)
- Add a setting for facebook and instagram client id (currently need to set in the code) and maybe add more social media and such
- Create good documentation
- Create a permission and a minimum chrome version detector
- Other fixes are to be made. TL;DR
Pull requests are welcome.