Matter 1.0.0
  • Getting Started
  • Authoring
  • Rendering
  • Integration
  • Samples
  • Reference
  • Support
Search Results for

    Browse the manual
    • Matter user guide
    • Getting Started
    • Requirements and compatibility
    • Authoring
    • Substance authoring
    • Rendering
    • Surface smoothing
    • Integration
    • Core concepts
    • Worlds, saving and loading
    • Physics integration
    • Web deployment
    • FishNet integration
    • Samples
    • Benchmarking
    • Reference
    • Runtime API
    • Rendering API
    • Editor API
    • Release notes
    • Support
    • Troubleshooting

    Web deployment

    Matter supports browser builds through Unity's Web platform. Use WebGPU for full presentation on compatible browsers, or WebGL2 for CPU simulation with the reduced rendering path.

    Configure graphics APIs

    Open Unity's Build Profiles, select Web, and add your application's scenes. In the Web Player Settings, disable automatic graphics API selection and place WebGPU before OpenGLES3/WebGL2 if you want a fallback. Test both paths on your supported browsers. See Requirements for the Unity version and rendering limitations.

    WebGPU does not support synchronous GPU-to-CPU readback. Use these asynchronous APIs in browser-safe gameplay and persistence code:

    • SetBackendAsync
    • ReadAllCellsAsync
    • ReadChunkAsync
    • ExtractCellAsync
    • InjectCellAsync
    • MatterWorldPersistence.CaptureAsync
    • MatterWorldPersistence.SaveToBytesAsync

    Configure texture compression

    Matter prepares its imported sample texture tiers for the active build target before a player build. The platform profiles are:

    Target Packed color, surface, and normal arrays Height
    Windows/macOS/Linux BC7 R8
    Web Generic or DXT DXT5 R8
    Web ASTC ASTC 6x6 R8
    Web ETC2 ETC2 RGBA8 R8
    Android ETC2 RGBA8 R8
    iOS/tvOS ASTC 6x6 R8

    Generic Web deliberately defaults to DXT5 for desktop browsers. Select the ASTC or ETC2 Web texture subtarget before building for compatible mobile browsers. Runtime tier validation rejects unsupported formats instead of allowing BC7 to expand silently to RGBA32.

    Matter distributes no generated texture arrays. Importing or building a Matter sample generates the target-specific project cache under Assets/Samples/Matter/Shared/Resources; merely installing the package does not generate or add the demo arrays to unrelated player builds.

    Serve over HTTP or HTTPS

    Do not open the generated index.html directly from disk. Serve the build from localhost during development and HTTPS in production.

    Brotli-compressed output requires the correct content type and Content-Encoding: br for native decompression:

    File Content type
    .data.br or .data.unityweb application/octet-stream
    .framework.js.br or .framework.js.unityweb application/javascript
    .wasm.br or .wasm.unityweb application/wasm

    Configure these response headers on your hosting service. On Apache you can use .htaccess rules; other servers need their equivalent configuration. If your deployment uses hidden configuration files, make sure your upload includes them. Check the browser Network panel for the actual response headers.

    If a response contains Content-Language: br instead of Content-Encoding: br, the server is treating .br as the Breton language suffix. Correct the server rules, then clear the affected CDN and browser caches.

    Persistence in browsers

    Use the byte-based world APIs and store the resulting bytes in the project's chosen browser, download, cloud-save, or service layer. The Feature Showcase flushes its virtual persistent filesystem to IndexedDB before reporting that a save completed.

    Networking

    The core Feature Showcase is a visual browser demo. Browser networking requires a compatible WebSocket transport and server supplied by the consuming project. See the separately distributed Matter: FishNet Integration guide when using FishNet and Bayou.

    In this article
    Back to top Generated by DocFX