![]() Assuming you put your game files into the public_html/unity/my_game directory, you can get to it by going to or if you’ve followed along with my SSL tutorial. Now you should be able to get to your game by typing the appropriate url into your web browser. Then upload the files using the Upload button. Once its all said and done, I have a nice little set of nested folders that I can use to keep all my web games nicely organized. Because this is my 1945 game, I call it “1945”. Because I plan on hosting more than one game, I create a folder inside of the unity folder. You know, since I’m uploading the games I made with Unity. From there, go to your public_html folder, and create a new folder. Login to your account, click on cPanel in the top navigation menu, and click on file manager under the files section. If you have your site hosted through Bluehost, they have a convenient file manager you can use (I assume other hosting services offer similar conveniences). In order for it to appear on our website, we need both the folder and index.html somewhere publicly accessible. Once it is done building, you will have a nice folder called “Build” and an html file called index.html. This may take a while depending on the size of your game and the speed of your computer. ![]() Since we are planning on publishing it on the web for people to play, have Development Build turned off. Make sure the checkboxes next to the scenes you want in your game are all selected, and choose WebGL for your platform (the Unity symbol marks the current platform). I’ll even make it super easy… here’s the link!) WebGL Build If you’re still using a version that supports that, I recommend you go to Unit圓d.com and download a newer version. (In older versions they had something called “Unity Web Player”. Next, we need to build it into a version that web engines can understand. Note that you have to have a hosted version of WordPress (or somewhere else you can post files to publicly, like a public Dropbox or something).įirst off, we need to make a game. And how much easier can it be to share that stuff than by hosting it on your website! Here’s how I embed the games I make with Unity on my website. If you’re anything like me, you like to show others the stuff you make. I recommend you check that solution out first. ![]() Edit: I have an updated method to embed Unity games in WordPress that makes use of shortcodes and doesn’t need iframes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |