Addon Dayle Rewards/New Account Rewards
To create a RewardItem, right-click inside any project folder, go to create and select Rewards/Reward Item.
Last updated
To create a RewardItem, right-click inside any project folder, go to create and select Rewards/Reward Item.
Last updated
1- Install the DayleRewards addon
2-In the "Home" scene, add the UIDayleReward and UINewAccountReward prefabs to the canvas, and create buttons to activate these prefabs.
step by step video: https://youtu.be/vcXCF8rQp0k
rewardItems
Type: RewardItem[]
Description: An array of RewardItem
objects representing the rewards available for each day. Each element corresponds to the reward that a player can claim on a specific day.
rewardEntryPrefab
Type: RewardEntry
Description: The prefab used to instantiate each reward entry in the UI. This prefab defines the visual representation and interactive elements of an individual reward in the daily rewards menu.
rewardsContainer
Type: Transform
Description: The parent container in the UI where all instantiated RewardEntry
instances are placed. It organizes the reward entries within the user interface.
rewardPopup
Type: RewardPopup
Description: A popup UI element that appears when a player claims a reward. It displays detailed information about the claimed reward, such as its icon, title, and description.
rewardItems
Type: RewardItem[]
Description: An array of RewardItem
objects representing the rewards available to new players. Each element corresponds to the reward that a player can claim on a specific day during the first 7 days of their account life.
rewardEntryPrefab
Type: RewardEntry
Description: The prefab used to instantiate each reward entry in the UI. This prefab defines the visual representation and interactive elements of an individual reward in the new account rewards menu.
rewardsContainer
Type: Transform
Description: The parent container in the UI where all instantiated RewardEntry
instances are placed. It organizes the reward entries within the user interface.
rewardPopup
Type: RewardPopup
Description: A popup UI element that appears when a player claims a reward. It displays detailed information about the claimed reward, such as its icon, title, and description.
totalRewardDays
Type: int
Description: The total number of days for which new account rewards are available. By default, it is set to 7, allowing players to claim rewards for the first seven days after account creation.