Developer Tools & Plugins
Documentation for proprietary Unity Editor extensions, rendering pipelines, and external animation authoring software.
Hybrid AI Toolkit
A modular NPC decision-making toolkit for Unity, built as a dual-process hybrid AI that seamlessly combines reactive subsumption layers with deliberative utility AI. It is authored through a custom UI Toolkit editor window that replaces traditional node graphs with a highly efficient top-down priority tree.
Location: Assets > Scripts > AI > README.md
Usage Guide: Docs > AI-Toolkit-Quickstart.md
Decision Architecture
- Reactive Subsumption Layers: Evaluated in a strict top-down sweep where the first eligible layer preempts everything below it. Features a guaranteed suppress-before-enter lifecycle, activation/deactivation hysteresis, cooldowns, and lock-in to prevent behavioral thrashing.
- Deliberative Utility Evaluator: When no reflex fires, a utility evaluator selects actions via compensated-product scoring of response curves (pre-baked to 64-sample lookup tables for optimization), with veto considerations acting as hard gates.
Perception & Tactical Positioning
- Perception Sensors: Includes a vision cone with last-known-position (LKP) memory, a ring-buffered hearing bus, and a stealth suspicion meter.
- Tactical Movement: Evaluates reachable NavMesh points prioritizing line-of-sight. Uses destination claiming to ensure agents spread out defensively rather than stacking on the same point.
Performance & Memory (Zero GC)
- Zero-Allocation Blackboard: Utilizes flat typed arrays where string keys are resolved to array slots exactly once at initialization, eliminating dictionary lookups at runtime.
- Massive Scalability: Supports 250+ agents running simultaneously with distance-based LOD and staggered ticking. Processes in under 0.1 ms per ticked frame with strictly zero Garbage Collection (GC) allocations (verified via automated testing).
Runtime Debugger
Includes a dedicated runtime debugger that exposes live layer scores, real-time blackboard state, and a historical transition timeline to trace AI decision-making frame-by-frame during testing.
Environment Generator
An interactive procedural city and transit authoring tool built directly into the Unity Editor. Designed to generate dense, zoned urban environments and elevated transit networks over arbitrary terrain topologies.
Location: Assets > Plugins > EnvironmentGenerator
Core Generation Systems
- KD-Tree Zoning & Parceling: Partitions 3D space into distinct districts. A grid-allocation algorithm processes multi-cell footprints to organically scatter and align building plots.
- CGA Shape Grammar: Procedurally constructs building facades and walkable interiors. Generates modular bays, entrance hierarchies, and exterior greebles into optimized static meshes featuring physically open doorways and windows for Wave Function Collapse (WFC) navigation.
- Catmull-Rom Spline Transit: Evaluates 3D splines to extrude continuous viaduct train tracks. Automatically spawns terrain-conforming support pillars.
- Dynamic Envelope Clearance: An air-rights padding system that limits adjacent building heights to prevent collisions with the transit networks.
- Physics Terrain Snapping: All structures execute downward physics raycasting to snap onto uneven landscapes non-destructively, fully supporting Unity's undo/redo transaction system.
Virtualized Geometry Optimizer
A custom geometry virtualization renderer built to handle extremely high-poly environments while integrating seamlessly with the Universal Render Pipeline (URP). This tool fundamentally streamlines the 3D modeling workflow for environment and character artists.
Artist Workflow Enhancements
- Zero Manual Retopology: Eliminates the need for artists to overly "optimize" or decimate high-fidelity 3D models before engine import.
- Automatic LOD Generation: Dynamically clusters and scales mesh data, entirely removing the requirement to manually author LOD0, LOD1, and LOD2 groups.
- Render Cost Preservation: Maintains a strictly acceptable frame-budget by culling and streaming microscopic triangles out of memory before they hit the rasterizer.
MP4 to FBX Converter
A separate, external Python software suite engineered to ease the animation pipeline. It extracts human motion data directly from raw .mp4 video files and bakes them into .fbx rigs, providing designers with instant primitive base animations to dramatically reduce workload.
| Component | Technology Stack | Function |
|---|---|---|
| Tracking Engine | Google MediaPipe Pose | Estimates 33 3D landmarks on the human body from 2D RGB video frames. |
| Translation Layer | Python / NumPy | Converts local landmark coordinate data into rotational quaternions. |
| Exporter | FBX SDK | Bakes the bone rotations onto a standard humanoid rig format. |
Note: Full setup instructions, dependencies, and command-line arguments are located in the README.md included in the source files.