BulletHell Elemental Template
  • Bullethell Elemental Template
  • ✨Getting Started
    • 🚀Quickstart
  • 😓Common problems
  • 📲User Interface Menus
    • Login Scene
    • Game Instance
    • Monetization Manager
    • Battle Pass Manager
    • Game Manager
    • Audio Manager
    • IAP Manager
    • Loading Manager
    • Language Manager
    • Backend Manager
    • Reward Manager Popup
    • Rechargeables Manager
    • Home Scene
    • Creating a new scene
  • ⚔️Scriptables
    • Create new character
    • Create new Character Type
    • Create New Skill
    • Create New Player Icon
    • Create New Player Frame
    • Create New Map Info Data
    • Create New Quest Item
    • Create New IAP shop Item
    • Create new Coupon Item
    • Create New Currency
    • Create New ShopItem
    • Create New BattlePassItem
    • Create New SkillPerkData
    • Create New StatPerkData
    • Create New Monster/Mob
    • Create New Monster wave
    • Create New DropEntity
    • Addon Wheel Spin
    • Addon Lootbox
    • Addon Dayle Rewards/New Account Rewards
    • Addon Realtime Global Chat
  • EventMap/Reward map(Preview)
Powered by GitBook
On this page
  1. Scriptables

Addon Lootbox

To create a LootboxItem, right-click inside any project folder, go to create and select LootBox/Lootbox Item.

PreviousAddon Wheel SpinNextAddon Dayle Rewards/New Account Rewards

Last updated 7 months ago

LootboxItems are represented by Currency, so you can create a CMB currency (acronym for Common box) for example and in the lootboxitem in the CurrencyID field add the same ID as the CMB currency, so if the player has 10 CMB currencies and opens the UILootboxMenu menu he will have 10 common boxes to open.

1-Add the currencies that represent the boxes in the MonetizationManager

2-Add the UILootboxMenu prefab to the canvas in the "Home" scene and create a button to activate the UILootnoxMenu prefab

step by step video:

Public Variables Documentation

  1. commonItems

    • Type: RarityItems

    • Description: Represents the collection of common rarity items available in lootboxes.

  2. uncommonItems

    • Type: RarityItems

    • Description: Represents the collection of uncommon rarity items available in lootboxes.

  3. rareItems

    • Type: RarityItems

    • Description: Represents the collection of rare rarity items available in lootboxes.

  4. epicItems

    • Type: RarityItems

    • Description: Represents the collection of epic rarity items available in lootboxes.

  5. legendaryItems

    • Type: RarityItems

    • Description: Represents the collection of legendary rarity items available in lootboxes.

  6. lootboxItems

    • Type: List<LootboxItem>

    • Description: A list of available lootboxes that players can open to receive prizes.

  7. lootboxContainer

    • Type: Transform

    • Description: The parent container in the UI where all LootboxEntry instances are instantiated and displayed.

  8. lootboxEntryPrefab

    • Type: LootboxEntry

    • Description: The prefab used to instantiate each lootbox entry in the UI, representing individual lootboxes that players can interact with.

  9. prizePopup

    • Type: GameObject

    • Description: A popup UI element that displays the prize won by the player after opening a lootbox.

  10. prizeIcon

    • Type: Image

    • Description: The image component within the prize popup that shows the icon of the won prize.

  11. prizeTitleText

    • Type: TextMeshProUGUI

    • Description: The text component within the prize popup that displays the title or name of the won prize.

  12. prizeQuantityText

    • Type: TextMeshProUGUI

    • Description: The text component within the prize popup that shows the quantity of the won prize, if applicable.

  13. claimButton

    • Type: Button

    • Description: The button within the prize popup that players can click to claim and close the popup after receiving their prize.

  14. animationBackground

    • Type: GameObject

    • Description: The background UI element used during the lootbox opening animation to provide visual effects.

  15. boxIcon

    • Type: Image

    • Description: The image component of the lootbox that undergoes shaking animation when a lootbox is being opened.

⚔️
https://www.youtube.com/watch?v=C9n2-untWNM