Skip to content

Latest commit

 

History

History
99 lines (83 loc) · 8.93 KB

README.md

File metadata and controls

99 lines (83 loc) · 8.93 KB

Unity Explorer

Welcome to the official documentation for Unity Explorer — the Decentraland client built on Unity. This wiki covers architecture, development standards, feature guides, and tooling.

This documentation covers the Explorer/ project. The repository also hosts two sibling roots with their own READMEs: avatar-preview-renderer/ (Unity WebGL avatar/wearable preview used by the Marketplace, Builder, and authentication screen) and unity-shared-dependencies/ (UPM package shared by both projects). See the root README for the layout, path-scoped CI, and the two release streams.


Getting Started

Contributing

Architecture

  • Architecture Overview — ECS concepts, dependency management, containers, and abstractions
  • Directories & Assemblies — Project folder structure and assembly rules
  • Systems — ECS system lifecycle, streamables, and scene bounds
  • Scene Runtime — SDK7 scene execution, CRDT bridge, JS modules, scene lifecycle states, and threading model
  • Cross-World ECS Access — Global world from scene systems, injection chain, propagation systems, bridge components
  • MVC — UI architecture: controllers, views, and the MVC manager
  • Third-Party Libraries — ArchECS, ClearScript, and Sentry

Development Guides

Core Systems

  • Asset Promises — Asynchronous asset loading with ECS promises
  • Disk Cache — Persistent asset cache: architecture, atomic writes, corruption self-healing, and eviction
  • Asset Bundles Conversion — GLTF to Asset Bundle conversion pipeline
  • Web Requests Framework — Allocation-free web requests with retry policies
  • Memory & Resource Unloading — Memory budgeting and cache unloading strategies
  • UUAV Media Stack — Out-of-process sandboxed media decode: architecture, platform transports, committed-binary pinning, and design rationale
  • Multiplayer — Transport-agnostic multiplayer hub: shared interfaces, movement pipeline, entity/profile tables, SDK propagation, dual-transport wiring
  • LiveKit Networking — LiveKit transport: dual-room architecture, messaging pipes, Archipelago/GateKeeper, voice and chat rooms
  • Pulse — Pulse transport: ENet peer transport, peer identity, protocol, feature-flag gating
  • Diagnostics — ReportHub logging system and Sentry integration
  • Performance Analytics — performance_report telemetry: hiccup/frame-time metrics, measurement window, and target-relative threshold
  • Skybox — Look presets (StylizedV1 ships, Legacy kept for SDK control, Halloween2026 seasonal), remote look selection via feature flag, controller data flow, shader variants, PBSkybox, PBSun and PBEnvironmentFog scene overrides (sky texture, derived reflections, environment gradients, sun intensity and direction), debug switching, authoring

Avatar System

Chat & Social

  • Chat — Chat system architecture, state machine, and MVP structure
  • Chat Emojis — Emoji atlas creation and TextMesh Pro integration
  • Chat History Storage — Local encrypted chat history persistence

Features & UI

Authentication & Web3

Testing & Debugging

  • Debug Container & Widgets — Runtime debug panel architecture, widget builder API, bindings, and integration patterns
  • Testing Guide — UnitySystemTestBase, ECS test utilities, mocking, EditMode/PlayMode, async test patterns
  • Automation Testing — AltTester SDK setup, writing UI automation tests, static probes for reading client state, running against instrumented builds and in-Editor, triggering visual regression on PRs via /visual-tests
  • MCP Automation — Embedded MCP server for coding agents: screenshots, player/scene state, scene logs, and player control via --mcp
  • Synthetic Input Simulation — Driver-agnostic input layer shared by the MCP tools and AltTester probes: movement, pointer/hover, global SDK input actions, camera look, and UI interaction through the production pipelines
  • Connect to Local Scene — Running and connecting to local SDK7 scenes
  • Master of Bots — Simulating multiple bot users for load testing
  • QA: Archipelago Island Room — Verifying island assignment and LiveKit room membership from the client, and reading the debug room indicator
  • Override Debug Log Matrix — Runtime log severity overrides
  • Performance Benchmark — Generating PDF benchmark reports

Build & CI

  • Security Review — Jarvis pilot rollout, validation and recovery
  • Build & CI — GitHub workflows, Python build handler, Unity Cloud, and the app-local Visual C++ runtime
  • Delta Updates — Per-file binary patches for launcher updates: release pipeline, S3 layout and retention, manifest format, launcher contract, and the scripts/delta/ Rust tool (vocabulary, stages, workflows, local run)
  • Unity Upgrades — Handling Unity version upgrades and CI images
  • Troubleshooting Missing Docker Images — Fixing missing UnityCI Docker images

Operations

  • Incident Response — Severity levels, #qa-team flow, crash escalation, hotfix rules, and SEV-1 postmortems
  • Issue Triage Categories — Primary vs secondary feature categories used to assign severity labels and decide SEV-2 hotfixes