Build and Publish Unity Game to Itch.io

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right so you're ready to build and publish your game or maybe you're not and you're still interested in finding out how to do that but it's actually pretty simple all we have to do is go to file build settings and then here we have to make sure in our scenes to build to add our open scenes that basically means we add in our current scene that we are on and it will add it to the build so it will be included in the build and then we have our platforms that we can select from by default it's PC Mac and Linux if you want to change to either of these you have to go to your unity hub and then under installs and under the current version you're working on your project you just click these little three dots and add modules and then you can add in Android iOS Linux Mac etc I currently have also downloaded WebGL build support for this project meaning that you can play the game online without needing to download it so that's very useful in each that IO if you don't want anyone to download your game and you just want them to be able to play it in the browser you can use WebGL as well so we actually want to change the name and icon of our game so we can do that in the player settings and at the top you can put your company name your product name which is the name of your game the version of the game and the default icons there's also some extra settings down here there's some icon overrides if you want different icons for different resolutions we have some settings under resolution and presentation and then we have some settings under the splash image which is what unity shows at the beginning you can also add your own but if you're using unity free version it will show their logo at the start we also have some other settings if you're building for mobile you'll need to fine-tune some of these such as the bundle identifier which is how your game is identified on the App Store it's identified by your company name and your game name and then if you're on Android build mode it will come up with an API compatibility and depending on what API version the Android store requires you just change it depending on what they require so once again we go to file build settings and then we can press build and then here it's where our career project folder is I want to right-click and create a new folder and I will call that builds I like to be organized so that's why I have the certain folders and then here I can do a new folder and I can call this PC build and then here I can select a folder and it will take some time to build but once it has it will put an exe file along with some other files into that directory and then we can zip all of those files up and then put it into hto or whatever website that you want alright so once it's done its opened up the folder that we build it to and so you can see we have some files here you need all of these files to be able to play the game but if we click the exe then it will open up the game and we'll be able to play it but to upload to HD IO we have to select all of these folders right click send to compressed zipped folder and then we can name the zipped folder anything we want so we can name it test and then if we go to H dot IO if you make an account and then on the top right you have your username you can click the little drop down and upload a new project and it will take you to this page and here you can put in your title the project that URL that you want your description tags and this is where the important part is it asks you what kind of project you're uploading so if you're uploading a PC build Mac or Linux you have to press downloadable so you can press upload file and then you can put in that zip file and it will upload it but to upload it you have to make sure that you have a title and the create a new project or else it will not let you to upload it and so that's how to do a PC build if you want to do a WebGL build you have to make sure that you have the WebGL installed so in your unity hub version we go to your version add modules and once again you download that WebGL support and then to switch to WebGL support you just click on WebGL and you switch platform and if you downloaded the WebGL add-on while you had a unity open you have to restart the editor or else it will switch properly so then we just wait a while until this is done compiling all right so after 10 million years it has switched to WebGL and now we can actually build the game so if we just press build and once again we go into the builds library then we can create a new folder and we can call this the WebGL build because we don't want the files to mix with each other cuz then we'll be like which one was for the PC build and which one was for the WebGL build so let's just make the separate folders and then you just press build and no will take quite a while once again alright so now it's finished doing the WebGL build and now we have these files here in our WebGL build folder and then we can just select all of them and then right-click and unsend to compress its folder you can call that just WebGL and then in the HD IO if you want to do a WebGL instead of a downloadable you just have to put HTML under kind of project we can just delete the old one and let's upload the new one so now it's been updated and we can just put save and view page and then it will try to load the game for you and you and you can run the game pretty neat yeah so that's the basics um if you want to the unity actually has their own website you can upload to if you wanted to upload to that you can go to window package manager and then make sure under advanced you have show preview packages and then just search WebGL and then there's a WebGL publisher and then you can install that and once it's done downloading we can exit out of that and then under the publish tab at the top we can press web GL project get started locate existing build maybe you've already built it and for me it has some difficulty loading the existing build so but creating a new build works and after you create a new build a screen like this will pop up where you have the game name a thumbnail that you can put and then after it's done uploading BAM you'll have your link and you can just click the link and play it there I just prefer each thought IO since more people are on that site and then one last thing before I go you do have to make sure you don't have any errors to be able to build a game so to check if you have any errors you if you could play it won't play or you can just go to the console and there might be a little red arrow here so let me just make an error as an example so I've cleared the console and you can see here we have an error on line 16 the type or namespace audio source could not be found so if you double click that error it will take you to the line where the air is and then it's pointing to this and it says it can't find what this means and that's because well that doesn't exist in programming you have to make sure that everything is capitalized correctly because things are kept sensitive at least that's how it goes in all of these C languages which this is a c-sharp and so that's just a bit um thank you for watching this video or if you've been along for the series thank you for watching the series I greatly appreciate all the support I've received so far if you haven't I have a discord channel which I will link below and you can ask any questions there or if you have any recommendations then you can put it there as well and thanks so much for watching I'll have more exciting content coming soon and good luck on your game dev journey [Music]
Info
Channel: samyam
Views: 132,813
Rating: undefined out of 5
Keywords: samyam, unity3d, unity, tutorial, game dev, game development, unity beginner tutorials, unity 2020 webgl, unity webgl, unity webgl to website, 2020, unity webgl tutorial, unity build tutorial, unity publishing game, publish itch, itch.io, upload game to itch.io, how to, unity build settings, export to webgl, How to put your Unity Game WebGL online using Itch.io
Id: UuXZnX6cY6A
Channel Id: undefined
Length: 8min 18sec (498 seconds)
Published: Mon Jun 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.