Is it possible to host Unity project?
I have a unity game development project which runs C#
Since I already use railway for my other projects I would like to host this unity as well, is it possible?
17 Replies
Project ID:
N/A
can your game run on the web without railway
if so, yes
Technically, some providers access the unity project and compiles into webGL than its hosted as html and everything that is needed to work
so yes, it runs on the web but not just deploy the unity... I think their would need a workflow to work with railway
you would probably need to use a custom dockerfile that can do it for you
https://docs.unity3d.com/Manual/webgl-building.html this might help
or you know, maybe not actually as this is through the UI - you might need some kind of CI that does it for you
ok this might help: https://gist.github.com/jagwire/0129d50778c8b4462b68
Gist
Unity command line script to build WebGL player
Unity command line script to build WebGL player. GitHub Gist: instantly share code, notes, and snippets.
thanks gonna have a look
hey, for hosting a static site (a unity webgl project) railway is not optimal, i'd look into other static site hostings like vercel or netlify, as much as i love railway, it is more intended for stuff that needs a central machine, like backend servers, and not so much static site hosting
I see, thanks for the suggestion
np :)
if you need any more help about hosting a unity webgl build, hmu, i have experience
I’ll definitely let you know if I have any problems on that, thanks for the help 🙂
Could you expand on this? 👀 I'm curious about the downsides
You got me in a sticky situation atm, but I will expand when I get back home
if @LaCrak27 don't mind saying, Vercel experience for Frontend is a lot better, they've CDN everywhere so your website loads a lot faster, plus they're totally free for hobby projects (you might not get that on Railway).
Well, if CDN is the only concern, I feel i'm ok with just ignoring it / finding workarounds, but ye, I thought that might be one of the arguments
Yeah, essentially