Press "Enter" to skip to content

Category: Unity3d

Share your Unity game’s URL every build!

As a game developer I want to share my current game quickly with friends and testers. As going to the build page, clicking the share-link and then updating a webpage is a lot of work, I went looking for other ways.

Luckily Unity Build has an API. It also has a webhook to notify when the build is completed. Putting these all together, my website buttons now automatically link to the latest build on the Unity Build platform. Unfortunately I spent a lot of item trying to figure out what parameters were the correct ones, which took more time than which I had hoped. For that reason, please find the references in step 4.


  • A webserver with php installed (MySQL optional)
  • A Unity cloud build project with automated builds set-up



  1. Go to your webserver and create 2 files: webhook.php and index.php
  2. Open webhook.php and paste in the following code (explanation will follow)

  3. Paste the following code in index.php
  4. Now we can look up the required information:
    1. Your api-key can be found in your cloud build > Preferences > API-key
    2. Your organisation, project and build id’s can be found by making the following API get-request

      From there you can find all the required ids from above (per project).
    3. Your build target is the name of your target system in small letters (eg. webgl)
  5. Now it is time to set up the actual webhooks. Go to the notifications tab of your cloud build project and choose “Add new”. Fill in the URL of your php script on your web server and keep the json content type.  Click the check boxes so only “ProjectBuildSuccess” remains and use SSL only if your site has https.


After filling everything in, start a new build (or commit a change). The cloud should send a post message to your website and the URL in the text file will be updated. When you go to your index.php page, you will be redirected to the build of your game’s latest commit!

Leave a Comment

Unity Cloud Build – Continuous integration and Unity3d

I’ve had an svn running for my Unity project for a while now, and this tool has saved me countless hours and heart attacks. I work on 2 computers so I would have to transfer my project each time which is a painstaking task. It is also very useful in case you want to revert a certain script to the precious commit (I’ve had some major brainfarts…). Svn keeps my files nice and organised and I can check the history of all my commits.

Repo browser

My next step was to start automating the build process. While I was looking to get a Jenkins server set-up I discovered Unity Cloud Build. It is an amazing tool that allows you to build for the different platforms without the need of a locally hosted build server. The free version enables you to build every 60 minutes for the different platforms. You can even play the WebGL version right from the Cloud Build cockpit!


There is a small amount of config required, compared to setting up Jenkins with Unity3d. I read that for Jenkis you require to add additional classes and do some config, while Cloud Build takes care of that for you. The only issue I ran into is that you can’t use native Blender files, so you have to export them into a .fbx format. Apart from that everything is working as expected. Unity Cloud Build checks my Svn server often and when a new change was made starts the build process. I receive mails when the builds I configured are done with an excellent error/warning log. I must say I am really amazed by the simplicity of use of the Cloud Build, while providing such a good and useful service!


Leave a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.