Skip to content

Commit 7fa0ed9

Browse files
authored
Update RLEditor.cs
comment out the move texture part, to prevent the mask texture missing issue.
1 parent e6026d5 commit 7fa0ed9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Editor/RLEditor.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,8 @@ public static void OnPostprocessAllAssets(string[] kImportedAsset, string[] kDel
848848
}
849849

850850
// First move the textures to the top level folder.
851-
MoveImageToTopFolder(kImportedAsset);
852-
RemoveEmptyTextureFolder(kImportedAsset);
851+
// MoveImageToTopFolder(kImportedAsset);
852+
// RemoveEmptyTextureFolder(kImportedAsset);
853853

854854
string strFileRLSourceFolder = Application.dataPath + "/" + strRootRLFolder;
855855
EnsureDirectoryExists(strFileRLSourceFolder);
@@ -1071,11 +1071,12 @@ private static void CreateMaterials(HashSet<string> assetsToReload, string strAs
10711071
{
10721072
string strTexturePath = kTextureData[kJsonPathKey].ToString();
10731073
strTexturePath = ConvertToAssetPath(strTexturePath);
1074+
/*
10741075
if (strTexturePath.Contains("textures/"))
10751076
{
10761077
strTexturePath = ChangeImageTexturePath(strTexturePath);
10771078
}
1078-
1079+
*/
10791080
if (File.Exists(strTexturePath))
10801081
{
10811082
rlMaterail.SetTexture(strUnityChannel, LoadTexture(strTexturePath));

0 commit comments

Comments
 (0)