← All school projects

paused2025

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

GitHub ↗

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

ModuleScripts
MovementFirstPersonController, Sprint, Crouch, Lean (AZERTY)
HorrorFlashlightSystem (battery, flicker), SanitySystem
CameraCameraShake, HeadBobbing, LookBehind (quick turn)
AIAIStateMachine, VisionCone, PatrolBehavior (NavMesh), ChaseBehavior
InteractionRaycastInteractor, DoorController, ExamineObject, HidingSpot, HighlightSystem
CombatHealth, MeleeWeapon, BlockDodge
AudioFootstepSystem, HeartbeatAudio
CoreIDamageable, 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).