Info
- Polis Core is the shared Unity library behind our projects. It is the package
cz.lics.polis.core in Packages/PolisCore, a git submodule
- Shared content (UI library, windows, avatars, localization, fonts, settings, scene templates) is in the XR content kit
cz.lics.polis.xr-content-kit in Packages/PolisXrContentKit, also a git submodule
- Stack:
- Unity 6 - Base engine
- URP - Rendering
- PurrNet - Networking
- XR Interaction Toolkit - VR and AR controls
- Odin Inspector - Editor inspector
- UniTask - Async framework
- DOTween - Tweening animations
- R3 - Reactive framework
- Newtonsoft Json - Serialization
- Addressables - Content loading
- Unity Localization - Translations
First run
- Always play from the root scene: toolbar button Polis/Play Root Scene. All managers live there, a content scene played directly does not work. See App Loader
- Pick the network mode in the Polis/Network State toolbar dropdown, e.g.
Host for a quick local test
- Pick the rig in the Polis/XR Mode toolbar dropdown:
Desktop, Simulator or Headset
- Missing Unity samples the kit uses: Polis/Content/Import Missing Samples
- Editor tools are in the Polis menu and on the main toolbar, see Editor Tools. Project settings and definitions: Polis/App Management
- Multiplayer test without builds: Parrel Sync
Module layout
- One folder per feature, each with its own assembly:
Packages/PolisCore/<Module>, namespace Polis.Core.<Module>...
- The core holds code and shaders only. Prefabs, materials and other assets used by the modules are in the content kit, grouped by domain (
App, UI, XR, Multiplayer, Environment, Localization, e.g. Multiplayer/Networking). Engine and editor config plus scene templates in Settings
- The kit never references a project, project files live in
Assets/_Projects/<Project>
External/ is copied third party code, don't edit it. Glue for packages is in ExternalUtils/<Package>
- Many assemblies compile only when their package is installed (version defines like
PURRNET, UNIVOICE, R3, SENTRY)
Code style
// Author: <name>
// Created: dd.MM.yyyy