Examples

The package includes three example scenes and an example hub. Each scene focuses on one way of using the weapon system.

🎮 Try the Demo

Play the Blueprint demo right here: scroll to switch weapons, press V to switch between the blueprint and testing mode, then shoot the targets.

🔫 The Scenes

The hub scene is in Glowing Rifts/Modular Weapon System/Examples, and each example has its own folder next to it.

🧭 Example Hub

Open the ModularWeaponSystem_Examples scene to reach every example from one place. Once you open an example from the hub, a Back (Esc) button stays on screen, and pressing Escape does the same: it frees the cursor and returns to the hub.

Tip

Start from ModularWeaponSystem_Examples. An example scene opened on its own has no Back button and ignores Escape.

The hub uses the Back To Hub prefab and the ExampleSceneLoader script from the Modular Health System examples, with its Escape Scene set to ModularWeaponSystem_Examples. See the Modular Health System examples for its fields.

🧰 The Weapons

The ready-made weapons used in the examples are in the Weapons folder:

Note

The example scripts are in the GlowingRifts.ModularWeaponSystem.Example namespace, so they don’t clash with your own code. They have no Add Component menu entry.