You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewSystem.NotSupportedException(string.Format("The texture '{1}' at array index '{0}' does not exist on disk. Only texture assets can be added.",n,value[n].name));
75
+
thrownewSystem.NotSupportedException($"The texture '{value[n].name}' at array index '{n}' does not exist on disk. Only texture assets can be added.");
return$"Texture '{texture.name}' uses '{texture.format}' as format, but must be using '{master.format}' instead, because the texture for slice 0 '{master.name}' is using '{master.format}' too.";
354
353
}
355
354
356
355
caseVerifyResult.MipmapMismatch:
357
356
{
358
357
varmaster=m_Textures[0];
359
358
vartexture=m_Textures[slice];
360
359
361
-
returnstring.Format("Texture '{0}' has '{1}' mipmap(s), but must have '{2}' instead, because the texture for slice 0 '{3}' is having '{2}' mipmap(s). Please check if the 'Generate Mip Maps' setting for both textures is the same.",
return$"Texture '{texture.name}' has '{texture.mipmapCount}' mipmap(s), but must have '{master.mipmapCount}' instead, because the texture for slice 0 '{master.name}' is having '{master.mipmapCount}' mipmap(s). Please check if the 'Generate Mip Maps' setting for both textures is the same.";
363
361
}
364
362
365
363
caseVerifyResult.SRGBTextureMismatch:
366
364
{
367
365
varmaster=m_Textures[0];
368
366
vartexture=m_Textures[slice];
369
367
370
-
returnstring.Format("Texture '{0}' uses different 'sRGB' setting than slice 0 texture '{1}'.",
371
-
texture.name,master.name);
368
+
return$"Texture '{texture.name}' uses different 'sRGB' setting than slice 0 texture '{master.name}'.";
372
369
}
373
370
374
371
caseVerifyResult.WidthMismatch:
@@ -377,17 +374,15 @@ public string GetVerifyString(int slice)
377
374
varmaster=m_Textures[0];
378
375
vartexture=m_Textures[slice];
379
376
380
-
returnstring.Format("Texture '{0}' is {1}x{2} in size, but must be using the same size as the texture for slice 0 '{3}', which is {4}x{5}.",
return$"Texture '{texture.name}' is {texture.width}x{texture.height} in size, but must be using the same size as the texture for slice 0 '{master.name}', which is {master.width}x{master.height}.";
382
378
}
383
379
384
380
caseVerifyResult.MasterNotAnAsset:
385
381
caseVerifyResult.NotAnAsset:
386
382
{
387
383
vartexture=m_Textures[slice];
388
384
389
-
returnstring.Format("Texture '{0}' is not saved to disk. Only texture assets that exist on disk can be added to a Texture2DArray asset.",
390
-
texture.name);
385
+
return$"Texture '{texture.name}' is not saved to disk. Only texture assets that exist on disk can be added to a Texture2DArray asset.";
ProjectWindowUtil.CreateAssetWithContent(directoryPath,"This file represents a Texture2DArray asset for Unity.\nYou need the 'Texture2DArray Import Pipeline' package available at https://github.com/pschraut/UnityTexture2DArrayImportPipeline to properly import this file in Unity.");
0 commit comments