Components
Components
This section covers all the core components used in the modular weapon system and how to properly integrate them into your weapon prefabs.
Each component in this system has a specific responsibility—whether it’s handling input, firing logic, ammo, recoil, health, or damage. By combining these components, you can build fully functional and highly customizable weapons with no code.
🔧 What You’ll Learn
- How to set up each component in your weapon prefab hierarchy
- How components interact with one another (e.g. Barrel ↔ Magazine, Hitbox ↔ Health)
- Tips for using UnityEvents to hook into sounds, VFX, and custom logic within the inspector
Whether you’re building a raycast rifle, an energy-based laser cannon, or a rocket launcher with splash damage, these component pages will guide you through it step by step.