Unity Mechanics Toolkit
Unity package of reusable mechanics for first-person horror games, with demo scene generators
Unity · C# · UPM Package · Editor Tools · AI · Horror
Unity toolkit gathering the classic mechanics of a first-person horror game, ready to drop into a scene.
Context
Personal project started in November 2025.
What I did
About forty C# scripts organised by module (movement, horror, camera, AI, interaction, combat, audio), demo scene generators in the editor, the documentation and the tutorials.
Links
Modules
| Module | Scripts |
|---|---|
| Movement | FirstPersonController, Sprint, Crouch, Lean (AZERTY) |
| Horror | FlashlightSystem (battery, flicker), SanitySystem |
| Camera | CameraShake, HeadBobbing, LookBehind (quick turn) |
| AI | AIStateMachine, VisionCone, PatrolBehavior (NavMesh), ChaseBehavior |
| Interaction | RaycastInteractor, DoorController, ExamineObject, HidingSpot, HighlightSystem |
| Combat | Health, MeleeWeapon, BlockDodge |
| Audio | FootstepSystem, HeartbeatAudio |
| Core | IDamageable, IInteractable, IKillable, IPoolable, GameEvents, extensions, ObjectPool, Singleton |
Editor tools
Five demo scene generators (Tools > Unity Mechanics Toolkit > Create Demo Scenes): player, AI enemy,
interactions, combat, and a horror showcase that puts everything together.
Distribution
UPM package (package.json, assembly definitions), architecture docs and four tutorials (player, AI, interaction,
combat).