Skip to content

Commit

Permalink
Add check for alternate audio type in resource redirector
Browse files Browse the repository at this point in the history
  • Loading branch information
bbepis committed Aug 8, 2018
1 parent 9edfa87 commit 0e15f64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ResourceRedirector/ResourceRedirector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public static AssetBundleLoadAssetOperation HandleAsset(string assetBundleName,

return new AssetBundleLoadAssetOperationSimulation(tex);
}
else if (type == typeof(AudioClip))

if (type == typeof(AudioClip) || type == typeof(UnityEngine.Object) && assetBundleName.StartsWith("sound", StringComparison.Ordinal))
{
string path = Path.Combine(dir, $"{assetName}.wav");

Expand Down

0 comments on commit 0e15f64

Please sign in to comment.