Skip to content

YaBackpackConfigComponent

YaBackpackConfigComponentmanages backpack-related configuration.

Properties

string PickUpAudioId

The ID of the audio that is played when the item is picked up.

Code sample

Example code

1
2
3
-- get the pick-up-audio, return empty if pick-up-audio not config
local audioId = YaBackpackConfigComponent.Instance.PickUpAudioId
print(">>>>>>>> pick-up-audio", audioId)