-
Notifications
You must be signed in to change notification settings - Fork 1
How to add a custom song
FredrikAlHam edited this page Oct 10, 2020
·
3 revisions
- Add audio to Assets/Songs/[Bundle Name]
- "Right-Click->Create->Song" in the same location
- Open the Song Asset in the inspector and assign the audio to the clip property.
- Fill the beats array of the Song asset in the inspector.
- In the "Window->Asset Management->Adressables->Groups" window "Right-Click->Create New Group".
- Drag the song asset(s) into the group.
- Assign the song label to the song asset in the addressable groups window(If it doesn't exist click manage, then click the plus symbol and type "Song")
- "Right-Click->Inspect Group Settings" and change Build Path to "Songs/[BuildTarget]" and load path to "Songs"
- In the "Window->Asset Management->Adressables->Groups" window, select the group and click "Build->New Build->Default New Build" You can find the file in the project directory under a directory named Songs/[platform]
- Place the generated file in the game's song directory