This walkthrough takes a fresh Unity project from package import to a live, 30Hz authoritative spatial simulation on 127.0.0.1:55555 in under ten minutes. Following this sequence hydrates your Single Source of Truth (SSOT) configuration, launches the headless spatial micro-kernel directly from the Unity Editor, and verifies 0 B/frame managed garbage collection under a 400-entity synthetic swarm load.
Before importing the SDK, ensure your workstation satisfies the baseline runtime and editor requirements:
2022.3 LTS or newer (configured with .NET Standard 2.1 API compatibility for Span<T> and MemoryMarshal support).01_CVL_CORE_Engine root directory) extracted on your workstation.127.0.0.1 / localhost) and enforce a hard admission ceiling of MAX_DEMO_CAP_EIDS = 400 concurrent entities.cvlcore-sdk-alpha.unitypackagecvlcore-sdk-alpha.unitypackage and click Import to unpack the SDK into Assets/.Assets/├── CVL_CORE_SDK/ # Core Zero-Allocation Runtime (CVLCore.SDK Namespace)│ ├── API/ # CVLEngineAPI.cs (Static Event Delegation Broker)│ ├── Configuration/ # CVLEngineConfig.cs (Mirrored SSOT ScriptableObject)│ ├── Core/ # CVLScreenSpaceUIManager.cs & CVLClientProfilerReport.cs│ ├── Editor/ # CVLSetupWizard.cs & CVLPrefabValidator.cs│ ├── Entities/ # CVLPlayerController.cs & CVLNetworkIdentity.cs│ └── Network/ # CVLNetworkManager.cs & ProtocolConstants.cs│└── CVL_Demo_Environment/ # Optional Reference Scene, HUD & Spectator Camera ├── Scenes/ # Turnkey 512m x 512m Evaluation Testbed Scene └── Scripts/ # DemoEnvironmentBridge.cs, CVLDemoHUD.cs, SpectatorCamera.csThe Delete Test Invariant:
Assets/CVL_CORE_SDK/has zero dependencies onAssets/CVL_Demo_Environment/. Once you finish evaluating the reference scene, you can deleteAssets/CVL_Demo_Environment/in its entirety without triggering a single compiler warning or missing reference.
CVL Setup Wizard)Rather than manually editing JSON files or duplicating speed constants across C# scripts, use the CVL Setup Wizard to synchronize your configuration and boot the server in one click.
Unity Config Asset points to CVLEngineConfig and Server JSON Path points to config/cvlcore_engine_config.json inside your 01_CVL_CORE_Engine root folder.4.0m and 64.0m (default: 16).cvlcore_engine_config.json, updates CVLEngineConfig.asset, and spawns the headless server bound to 127.0.0.1:55555 (wire transport) and 127.0.0.1:55556 (1.0Hz admin telemetry).
FIGURE 1.0 // Left: The Unity Editor Setup Wizard (CVL CORE > Setup Wizard) governing operational profiles, kinematic ceilings, and local server ignition. Right: The auto-hydrated CVLEngineConfig ScriptableObject mirroring server SSOT invariants for zero-allocation runtime access.
To test immediately, open the pre-wired evaluation scene inside Assets/CVL_Demo_Environment/Scenes/ and press Play. If you are wiring a brand-new Unity scene from scratch, complete these four steps:
CVLNetworkManager: Create an empty GameObject named [CVL_NetworkManager], attach CVLNetworkManager, and assign your hydrated CVLEngineConfig asset.CVLScreenSpaceUIManager: Create a Canvas set to Screen Space - Overlay, strip its GraphicRaycaster component, attach CVLScreenSpaceUIManager, and assign your pooled nameplate prefab.512m x 512m Terrain Floor: Create an invisible physics floor (BoxCollider centered at (256.0, -0.5, 744.0) with scale (512.0, 1.0, 512.0)) paired with an uncollided visual Plane at (256.0, 0.0, 744.0) scaled to (51.2, 1.0, 51.2) so client ground elevation matches the server’s Z-axis baseline.CVLNetworkManager uses lazy-connect initialization so Awake() and Start() remain socket-free. Trigger the connection handshake from your game bootstrapper via IgniteBootSequence():using UnityEngine;using CVLCore.SDK;
public class QuickstartBootstrapper : MonoBehaviour{ private void OnEnable() { CVLEngineAPI.OnNetworkStateChanged += HandleNetworkStateChanged; CVLEngineAPI.OnEntitySpawned += HandleEntitySpawned; }
private void OnDisable() { CVLEngineAPI.OnNetworkStateChanged -= HandleNetworkStateChanged; CVLEngineAPI.OnEntitySpawned -= HandleEntitySpawned; }
private void Start() { // Initiates Phase 1 TCP handshake, CRC32 protocol check, and bundle hydration CVLNetworkManager.Instance.IgniteBootSequence(); }
private void HandleNetworkStateChanged(EngineConnectionState state, string detail) { if (state == EngineConnectionState.ActiveGameplay) { Debug.Log("[CVL CORE] Connected to 30Hz authoritative micro-kernel on 127.0.0.1:55555."); } }
private void HandleEntitySpawned(string eid, GameObject proxy, bool isLocal) { if (isLocal) { Debug.Log($"[CVL CORE] Local operator spawned with permanent EID: {eid}"); } }}With the local server running in the background and your scene wired, press Play in the Unity Editor to verify end-to-end connection admission:
NetID 1.512m x 512m terrain plane at the authoritative server coordinates, and CVLEngineAPI.OnNetworkStateChanged transitions to EngineConnectionState.ActiveGameplay.C Key): Move your avatar with WASD to confirm 30Hz fixed-step OP_TELEMETRY transmission, or press C to detach SpectatorCamera into free-fly mode (which automatically sets CVLEngineAPI.IsInputSuspended = true so your avatar maintains its 30Hz keepalive heartbeat without triggering a 10.0s flatline timeout).
FIGURE 2.0 // Unity Editor running in Play Mode connected to the local spatial micro-kernel (127.0.0.1:55555), confirming ActiveGameplay state promotion, local EID hydration, and sub-millisecond loopback RTT.
1. Re-Export on Config Edits (CRC32 Parity Lock): Whenever you modify spatial or kinematic values in the Setup Wizard, click Save Configuration to Server JSON before restarting the server so the client's compile-time CRC32 protocol signature matches the server binary.
2. Remote Proxy PhysX Stripping: Never attach active Rigidbody or non-trigger Collider components to pooled remote proxy prefabs; local PhysX simulation on remote entities will fight the 133ms interpolation buffer.
3. Pre-Alpha Loopback & Cap Enforcement: Evaluation servers reject external WAN connections and cap total active entities at MAX_DEMO_CAP_EIDS = 400.
55557 in Client RPCs, Inventory & Player Persistence.CVLEngineAPI lifecycle events (OnVitalsUpdated, OnDamageFlashed, OnDynamicGeometryUpdated) in Public Delegation Broker & Telemetry Controller.133 ms snapshot buffer and sub-canvas UI pooling rules in Client Prediction, Interpolation & Presentation Smoothing.