public override void VerifyAssetError(SoAssetPostprocessor so) { ErrorLogic.SetValue(false); var inSpriteAtlas = false; var folder = System.IO.Path.GetDirectoryName(Path); var spriteAtlasAssetPath = StringUtil.Contact(folder.Replace("Sprite", "Atlas"), ".spriteatlas"); if (File.Exists(spriteAtlasAssetPath)) { string allText; if (spriteAtlasFile.ContainsKey(spriteAtlasAssetPath)) { allText = spriteAtlasFile[spriteAtlasAssetPath]; } else { allText = File.ReadAllText(spriteAtlasAssetPath); spriteAtlasFile[spriteAtlasAssetPath] = allText; } if (allText.Contains(AssetDatabase.AssetPathToGUID(Path))) { inSpriteAtlas = true; } } if (!inSpriteAtlas) { base.VerifyAssetError(so); } }
public override void VerifyAssetError(SoAssetPostprocessor so) { ErrorLogic.SetValue(false); var textureImporter = GetAssetImporter <TextureImporter>(); if (textureImporter.npotScale == TextureImporterNPOTScale.None) { base.VerifyAssetError(so); } }
void Application_Error(Object sender, EventArgs e) { string ExtraData = ""; try { ExtraData += "<br /><b>SessionID:</b> " + Session.SessionID; for (int x = 0; x < Session.Count; x++) { ExtraData += Session.Keys[x] + " - " + Session[x]; } } catch { ExtraData += "<br /><b>SessionID:</b> FAILED"; } ErrorLogic.HandleWebApplicationError(Request, Server, ExtraData); }
public override void VerifyAssetError(SoAssetPostprocessor so) { var(width, height) = GetTextureSize(GetAssetImporter <TextureImporter>()); var message = string.Empty; if (width != height) { ErrorLogic.SetValue(true); message = "The width of the texture should be the same as the height"; } if (!Helper.IsValuePowerOf2(width) || !Helper.IsValuePowerOf2(height)) { ErrorLogic.SetValue(true); message = StringUtil.Contact(message, "\n", "The size of the texture should be a power of 2"); } ErrorLogic.SetMessage(message.TrimStart('\n')); }
public override void VerifyAssetError(SoAssetPostprocessor so) { ErrorLogic.SetValue(false); }