Skip to content

Commit

Permalink
Error with new 1.0.2 version, when using Google>Create config for Add…
Browse files Browse the repository at this point in the history
…ressables Groups #63
  • Loading branch information
jelte.steijaert authored and jelte.steijaert committed Oct 5, 2022
1 parent bfafe69 commit ccb2d9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Editor/AssetPackBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings;
using UnityEngine;
using UnityEngine.AddressableAssets;
using Debug = UnityEngine.Debug;

namespace Khepri.PlayAssetDelivery.Editor
Expand All @@ -26,7 +27,11 @@ public static string GetLocalBuildPath()
var profileId = settings.activeProfileId;
var value = profileSettings.GetValueByName(profileId, AddressableAssetSettings.kLocalBuildPath);

return profileSettings.EvaluateString(profileId, value);
var result = profileSettings.EvaluateString(profileId, value);

if (string.IsNullOrEmpty(result))
result = Addressables.BuildPath;
return result;
}

/**
Expand Down

0 comments on commit ccb2d9e

Please sign in to comment.