Configuration

There are three scriptable objects that should be configured for feature-proper behavior. DataBinding, GraphicsData, and State.

DataBinding

  1. Days To End - text that will be displayed in the timer frame.
  2. Golden Pass Text - text that will be displayed in activated frame after actictivate enabled.
  3. Safe Reward Id - id for safe reward. If a safe reward is enabled when the user collects it, it will be automatically added to collected IDs in the State. Because each reward must be collected only once.
  4. Items - config for each step(item) on the vertical progress bar.
  1. Index - a number that is displayed in the center of diamonds.
  2. Diamonds To Collect - the amount of currency that the user should collect to complete the item(step)
  3. Free Reward Id - id that will be added to The collected IDs list
  4. Paid Reward Id - id that will be added to The collected IDs list
  5. Free Reward Text - Free Reward Text - text that will be displayed at the free icon.
  6. Free Reward Icon - an icon that will be displayed as a free reward icon.
  7. Paid Reward Text - Free Reward Text - text that will be displayed at the paid(activated) icon.
  8. Free Reward Icon - the icon that will be displayed as a paid(activated) reward icon.

GraphicsData

Scriptable Object that is responsible for holding the uxml documents that correspond to different types of Battle Pass.

  1. Type of Battle Pass
  2. Main panel
  3. Item(step) that spawns between the first and the last.
  4. The first step(item) that spawns first to the vertical progress bar. It's a unique Item.
  5. The last step(item) spawns first to the vertical progress bar. It's a unique Item.
  6. The save uxml document will spawn if a Safe reward is enabled.

State

  1. Amount of currency that the user has at the moment before the feature is opened.
  2. Amount of currency that the user saw last time the feature was opened. If the current amount is more than the last seen amount it enables the progress animation.
  3. Displays info about the user activated paid access.
  4. Type of Battle Pass.
  5. All collected rewards ids, that the user collected. It includes free, paid, and safe.
  6. With this flag you could regulate should a user has a safe reward or not.