Blueprint Demo
The Blueprint Demo shows the five ready-made weapons on a blueprint. Each weapon is labeled with the parts it’s built from, and you can switch to a testing mode to fire it at targets.
Open it from the ModularWeaponSystem_Examples hub, or from Glowing Rifts/Modular Weapon System/Examples/BlueprintExample/BlueprintDemo.unity.
๐ฎ Controls
| Input | Action |
|---|---|
| Mouse scroll | Switch weapon |
| V | Switch between the blueprint and testing mode |
| Left mouse button | Fire |
| Right mouse button | Secondary fire (Shotgun, Grenade Rifle) or steer rockets (Rocket Launcher) |
| R | Reload |
โ๏ธ How It Works
- The player holds all five weapons.
Cyclerturns one on at a time. BlueprintManagerswitches the testing mode:BlueprintTestershows the hologram and labels in blueprint mode, and the body and weapons in testing mode.Spawnerspawns targets with aHealthandHitboxfrom the Modular Health System.BulletViewshows the ammo left in the magazine.
๐ Scripts
| Script | Role |
|---|---|
BlueprintManager | Switches between blueprint and testing mode |
BlueprintTester | Shows the body or the hologram, and relays the weapons’ reload events to the animator |
Cycler | Switches the active weapon |
Spawner | Spawns targets |
BulletView | Ammo display |