Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 3 min read How-to mediumAdept

How to host a Unity game in a Space

A Unity game can be hosted as a playable demo on Hugging Face Spaces by building it for WebGL and pushing the output to a Static HTML Space. The steps: create a Static HTML Space, clone it with Git, switch Unity's build target to WebGL, optionally apply the Hugging Face WebGL template, set Compression Format to Disabled, build, copy the build files into the repo, track Build/* with Git LFS, and push.

Assumes: Unity editor basicsGit basics

Related posts

  • How We Built Shopify Party

    Shopify Engineering mediumAdept

    Shopify Party is a browser-based multiplayer 3D hangout space built in Unity WebGL with Normcore for networking. Normcore uses client-owned state rather than an authoritative server. Uncontrolled objects such as moving platforms stay in sync because their motion is a deterministic function of the shared room time, not a Unity animation. Character outfits are separate textures combined at runtime in a single shader, which lets employees design clothing without 3D skills. Optimizations for 60FPS on hardware from M1 Pros to Pixelbooks include Simple Lit materials instead of PBR, GPU instancing to cut draw calls, and a render scale capped to a target width.

  • Practical 3D Asset Generation: A Step-by-Step Guide

    Hugging Face mediumAdept

    A low-effort pipeline turns a text prompt into a usable game asset by leaning into the forgiving PS1 aesthetic. Shap-E on a Hugging Face Space generates the mesh, and Blender's Decimate modifier cuts it to a low poly count (ratio around 0.02). The Dream Textures addon with the texture-diffusion model then creates a seamless Stable Diffusion texture, which is applied via Smart UV Project. The result is exported as FBX into Unity, where vertex-lit shading, fog and glitchy post-processing complete the retro look.

  • How an Agent Built a 3D Paris Gallery by Chaining Two Hugging Face Spaces

    Hugging Face mediumAdept

    Every Gradio Space on Hugging Face now exposes a plain-text agents.md describing its API schema, call/poll endpoints, file upload and auth, so a coding agent can drive a Space with no client library. A coding agent chained an image-generation Space (ideogram4) with VAST-AI/TripoSplat to produce single-image 3D Gaussian splats of Paris monuments. It also handled the glue work: flipping Y-down outputs upright, auto-framing, compressing .ply to .ksplat (~3× smaller), building a Three.js viewer and deploying a static Space. Reusing the same pipeline for Japan and Egypt galleries took one prompt each, which the author offers as evidence for Mitchell Hashimoto's 'building block economy' applied to multimedia models.

  • Run ComfyUI workflows for free with Gradio on Hugging Face Spaces

    Hugging Face mediumAdept

    A ComfyUI node workflow can be turned into a standalone Gradio app and hosted for free on Hugging Face Spaces' serverless ZeroGPU tier. The steps: export the workflow to Python with ComfyUI-to-Python-Extension, then rewrite its main() into a generate_image function whose hard-coded node values become UI inputs and which returns the saved image path. To prepare for Spaces, fetch the models with hf_hub_download instead of uploading them, wrap inference in the @spaces.GPU decorator, and merge the custom nodes' dependencies into one requirements.txt. Loading models in global scope, outside the decorated function, keeps ZeroGPU from reloading them from disk on every run.

  • The 5 Most Under-Rated Tools on Hugging Face

    Hugging Face mediumAdept

    Five overlooked Hugging Face Hub features (ZeroGPU, multi-process Docker Spaces, the Gradio API client, Hub webhooks and Nomic Atlas) can be combined into a free, automatically updating semantic search pipeline, demonstrated over a subreddit data source. A scheduled Space pulls Reddit posts into a dataset, a webhook triggers a processing Space, and that Space calls a ZeroGPU-hosted nomic-embed-text-v1.5 model through gradio_client to add embeddings and build an Atlas map. Practical details include the @spaces.GPU decorator, supervisord config for running a worker and a log viewer in one container, and webhook handling: respond within 30s using background tasks, and filter by repo scope, main branch and changed files.

The quest for software engineering knowledge.

Look:
Layout: