Skip to content

Commit

Permalink
Use OriginalName as shader filename in Resources/AssetBundles (AssetR…
Browse files Browse the repository at this point in the history
  • Loading branch information
GZHYBFHHJ authored Mar 30, 2024
1 parent ecbd2a3 commit 608e3ab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected string GetUniqueFileName(IUnityObjectBase asset, string dirPath)
string fileName = asset switch
{
IPrefabInstance prefab => prefab.GetName(),
IShader shader when !string.IsNullOrEmpty(shader.OriginalName) => shader.OriginalName,
_ => asset.GetBestName(),
};
fileName = FileUtils.RemoveCloneSuffixes(fileName);
Expand Down

0 comments on commit 608e3ab

Please sign in to comment.