Flexible Recoil System is a Unity recoil toolkit for creating editor-based recoil presets and pattern paths, then integrating them into your own FPS/TPS camera and input setup with minimal coupling.Compatible with Built-in RP, URP, and HDRP.Core recoil runtime is pipeline-agnostic. Sample materials are auto-adjusted for the active render pipeline via Tools > Flexible Recoil System > Fix Sample Material Shaders.Tested on Unity 6000.3.11f1 (Unity 6 LTS) and 2022.3.62f3 LTS.Flexible Recoil System helps you build, tune, and integrate weapon recoil quickly without locking your project to a specific player controller architecture.Use the built-in editor window to:Create and manage recoil presetsDraw recoil patterns on a gridConfigure RPM, recoil scale, random strength ranges, interpolation curves, and decay behaviorAt runtime, the system is integration-friendly through two contracts:IRecoilInputSource for fire/reset/preset eventsIRecoilViewDriver for applying recoil to your camera/look systemThis lets you keep your existing movement/camera code and connect recoil through a clean abstraction layer.The package includes:A complete sample scene (FRS_SampleScene)Modular sample gun controllers and gameplay examples (preset switch, gun switch, training zone, target dummies)Debug helpers to visualize recoil distributionDocumentation for both users and developersSupported render pipelines:Built-in RPURPHDRPTested on:Unity 6000.3.11f1 (Unity 6 LTS)Unity 2022.3.62f3 LTSEditor tools: Recoil Settings panel for RPM, scale, random ranges, curves, and decayPattern Editor for recoil path authoring and preset management (create/rename/duplicate/delete)Runtime architecture: RecoilManager orchestrates preset selection, firing cadence, and mode behaviorRecoilSystem applies recoil/decay timelinesSaveLoadManager handles JSON settings IOIntegration contracts: IRecoilInputSource (fire/reset/preset switch events)IRecoilViewDriver (look input bridge + recoil application)Recoil modes: Pattern mode (Use Pattern = true) with deterministic step progressionRandom mode (Use Pattern = false) with configurable min/max strength rangesIncluded sample content: Assets/FlexibleRecoilSystem/Sample/FRS_SampleScene.unity with modular gun controllers, preset switching, training zone interactions, target dummies, and debug overlays.SRP compatibility support: Sample material shader auto-fix tool for Built-in/URP/HDRPMenu: Tools > Flexible Recoil System > Fix Sample Material ShadersDependencies: No Asset Store package dependencies required for core usage.AI was used as an assistant during development for code review, refactoring suggestions, documentation drafting, and editor/runtime troubleshooting guidance.



