Skip to content

Commit

Permalink
Bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed May 11, 2023
1 parent 5356f66 commit 28a1f97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/Script/PlayMode/Play.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,12 @@ private void LoadBackground() {

string backgroundPath = Path.Combine(song.Location, "bg.yarground");
if (File.Exists(backgroundPath)) {
// First check for a yarground
var bundle = AssetBundle.LoadFromFile(backgroundPath);
var bg = bundle.LoadAsset<GameObject>("Assets/_Background.prefab");

// KEEP THIS PATH LOWERCASE
// Breaks things for other platforms, because Unity
var bg = bundle.LoadAsset<GameObject>("assets/_background.prefab");

var bgInstance = Instantiate(bg);

bgInstance.GetComponent<BundleBackgroundManager>().Bundle = bundle;
Expand Down

0 comments on commit 28a1f97

Please sign in to comment.