Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(3 edits) (+4)

Yes there is. You need to build the project with WebGL and then plop the build files into itch.io.

First you open the build settings

Then you switch the platform to WebGL (if it isn’t installed then it will instead ask you to install it)

Then you build the game which will take a while…

Afterwards Unity will open the folder which contains all the files, select all those files and make them into a ZIP

Then on itch change the kind of project to HTML

Lastly, upload the ZIP file on itch and check the “This file will be played in the browser” box to true

Save and view the game page and you should be good to go! If you have any extra questions just ask me.

(+2)

Wow. That must be the best answer I've seen in ANY forum for a long time... xD

goes into some pretty good detail, most don't do that

Thanks for the help, I'm just new to this whole thing

Wow. That has to be the best reply to an answer I’ve seen in ANY forum for a long time… xD

when i ATTEMPT to build my game with webGl, it gives error :( sadly.

What does the error say?

it says smt rly longggg:

FileNotFoundException: Could not find file "C:\Users\MatthewZ\OneDrive\Documents\build.bc  Runner\Temp\StagingArea\Data\Native\build.bc" System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at :0) System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) (at :0) (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) System.IO.File.OpenRead (System.String path) (at :0) System.IO.File.ReadAllBytes (System.String path) (at :0) UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:470) UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:953) UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I think it’s asking for a file that does not exist, hence the FileNotFoundException. It seems to be missing the “C:\Users\MatthewZ\OneDrive\Documents\build.bc Runner\Temp\StagingArea\Data\Native\build.bc”. See if you can find that file and maybe it will work. You should probably also try googling your error and looking for an answer online.

ty! im rather new to webgl soooo yea.

wow