Ask coding questions

← Back to all posts
How to post Unity 3D creations onto replit
mesquite2234 (279)

I decided to learn unity, and made some pretty cool things that I want to share, but can't. How do I embed a unity3D project onto a repl?

Answered by ch1ck3n (2343) [earned 5 cycles]
View Answer
ch1ck3n (2343)

build the project as a web project

file->build settings->HTML thing->change build settings to this and build

mesquite2234 (279)

@ch1ck3n Thanks! I knew it had something to do with building, I just didn't know what to build for

mesquite2234 (279)

@ch1ck3n What do I do after I build it? (Sorry for the ping)

ch1ck3n (2343)

@mesquite2234 just upload the html files to replit

mesquite2234 (279)

@ch1ck3n So I got the HTML file and assets into a repl, but it's giving me an error:

Unable to parse Build/WebGL_MAYBE.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools` Network tab to debug.

What do I do?
(Again, sorry for the ping)

ch1ck3n (2343)

@mesquite2234 im not sure as i have not encountered that error :(