Loot box addon for the BulletHell Elemental Template: boxes opened with keys, rarity chances per box, odds popup and opening effects. Works on the Offline, Firebase and WebSocket + SQL backends.Addon for BulletHell Elemental Template!Requires the BulletHell Elemental Template v1.6 (sold separately). Works on the three backends of the template: Offline, Firebase and WebSocket + SQL.Game DemoDocumentationDiscord CommunityDeveloper's websiteLootbox adds a loot box screen to the main menu of the BulletHell Elemental Template. Each box is opened with its own key currency and gives a random prize by rarity (Common, Uncommon, Rare, Epic, Legendary): currencies, profile icons, frames or inventory items. Four example boxes are included (Stone, Hero, Royal and Golden) with their keys.Everything is set up with ScriptableObjects, no code needed. A Lootbox Item holds the key currency and price, the icons of the list and of the closed and opened box, an accent color, the chance of each rarity and the prize pool of each rarity.Features:Chance of each rarity set per box, with an odds popup that shows the chance and the prizes of every rarity, as some stores and regions require for paid random rewards.Option to leave out icons and frames the player already owns, so a cosmetic is never won twice.Instant opens on Firebase and WebSocket: the key is taken on screen right away and the backend saves the open in the background. A refused open is undone.Opening animation with rays, glow, flash and sparkles in the colors of the box and of the rarity, plus sounds for the opening and for simple, rare and epic prizes.Reward card with the rarity color and frame, and an "Open again" button.Key balances at the top of the screen and the cost in the confirm dialog.Box titles and descriptions can be translated.Mobile friendly UI with its own sprite atlas and a demo scene.On each backend:Offline: the roll happens on the device and the prize is saved locally.Firebase: the roll happens on the device; the key and the prize are saved in one transaction. No extra rules or indexes needed.WebSocket + SQL: the server rolls the prize, takes the key and gives the prize in one database transaction, so players cannot cheat the odds. A repeated request is never applied twice.Players can get keys from the shop, quests, the battle pass, daily rewards or the Lucky Wheel addon.Setup: add the UILootboxMenu prefab to the Home scene canvas, open it from a menu button and add the key currencies to the Game Instance.Features: loot boxes opened with key currencies, 5 rarities with chances per box, 4 prize types (currency, icon, frame, inventory item), skip owned cosmetics, odds popup, opening effects, instant opens, open again, translatable box texts.Backends: Offline, Firebase (one transaction per open) and WebSocket + SQL (prizes rolled on the server, repeated requests ignored).Setup: ScriptableObjects (Lootbox Item) and the UILootboxMenu prefab. 4 example boxes with their key currencies and a demo scene.Requirements: BulletHell Elemental Template v1.6, Unity 6000.0.38 or newer, TextMeshPro.Supported platforms: Android, iOS, PC and WebGL. On WebGL use the Offline or WebSocket backend: the Firebase SDK does not support WebGL.Documentation: Documentation




