Skip to main content
Version: 5.18.17

Unity ScriptableObject Settings

Set up the chart/probability file ID in ScriptableObject

To use the chart and probability data in-game, the file ID of the relevant data must be linked to the ScriptableObject in the Unity project.

The data loaded from the BACKND Console charts and probabilities are saved in ScriptableObjects and reflected in-game.

File IDs are generated when the chart or probability files are uploaded, and the chart or probability files must be applied to access the data.

    1. Copy the file ID that has been applied to the chart. image
    1. Find and select the ScriptableObject that will receive the data. Then, paste the copied chart file ID to the Inspector window. image

The default path for ScriptableObjects is Assets/ScriptableObjects.

Access the path by navigating the folder structure shown below, or search for the filename in Unity.

For example, to find a ScriptableObject named [Lemonade], follow the path Assets/ScriptableObjects/Kitchen Level Data/KitchenDataPerStage/STG0001 to find the [Lemonade] file.

Chart StageUpgradeList folder

Chart dataScriptable object file locationFile name
STG0001_STS0001Kitchen Level Data/KitchenDataPerStage/STG0001Lemonade
STG0002_STS0001Kitchen Level Data/KitchenDataPerStage/STG0002Cola
STG0002_STS0002Kitchen Level Data/KitchenDataPerStage/STG0002HotDog
STG0003_STS0001Kitchen Level Data/KitchenDataPerStage/STG0003Juice
STG0003_STS0002Kitchen Level Data/KitchenDataPerStage/STG0003Taco
STG0003_STS0003Kitchen Level Data/KitchenDataPerStage/STG0003Burrito

Chart StationUpgradeList folder

Chart dataScriptable object file locationFile name
UE_STG0001Stage Data/Stage Upgrade DataSTG0001
UE_STG0002Stage Data/Stage Upgrade DataSTG0002
UE_STG0003Stage Data/Stage Upgrade DataSTG0003

Chart InGameItem folder

Chart dataSO file locationFile name
DressDatasDress DataDressData
LootBoxDatasLoot Box DataLootBoxDatas

Chart ShopData folder

Chart dataSO file locationFile name
GemsShopDataShop DataGemsSaleData
BundleShopDataShop DataBundleSaleData
LootboxShopDataShop DataLootboxSaleData

Chart DailyReward folder

Chart dataSO file locationFile name
DailyRewardDaily Reward DataDailyRewardBatchData

Chart CharacterData folder

Chart dataSO file locationFile name
SpecialCustomerCustomer DataCustomerBatchData

Chart StageDefaultDataList folder

Chart dataSO file locationFile name
StageDefaultDataStage DataStageDefaultDatasCollections

Just like charts, the file ID must be copied and entered into the ScriptableObject for the probability data to be used properly in the game.

    1. Copy the file ID that has been applied to the probability. image
    1. Select the ScriptableObject, then paste the copied probability file ID to the Inspector window. image

The default path for ScriptableObjects is Assets/ScriptableObjects.

Refer to the table below for more detailed locations and ScriptableObject file names. Quickly access the file location with the default paths in the table below, or by searching the filenames.

Probability Loot Box Gacha Data

Probability dataFile locationFile name
LootBoxProbabilityLoot Box DataLootBoxProbabilityData

3. Start game

All configurations are complete.

Now open StartScene from Unity and click ▶ to run the example game!

Make sure to confirm that the configured chart and probability data are properly applied in-game.