just curious, is there a way to make a playable in-browser game with Unity? I'm new to this, is there any build setting for this or something?
Viewing post in Answering All Questions About The Jam
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.
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.