Explorar el Código

Added some debug logs for image loading

mbunch_kascope hace 2 años
padre
commit
f1e5363c47
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      Assets/Scripts/StreamingAssetsUtility.cs

+ 5 - 0
Assets/Scripts/StreamingAssetsUtility.cs

@@ -134,6 +134,7 @@ public class StreamingAssetsUtility
             return null;
             return null;
         else
         else
         {
         {
+            Debug.Log($"WebRequest Successful: Checking local file - {File.Exists(filePath)}");
             if(!File.Exists(filePath))
             if(!File.Exists(filePath))
                 File.WriteAllBytes(filePath, webReq_CardImage.downloadHandler.data);
                 File.WriteAllBytes(filePath, webReq_CardImage.downloadHandler.data);
 
 
@@ -145,6 +146,10 @@ public class StreamingAssetsUtility
 
 
                 return sprite;
                 return sprite;
             }
             }
+            else
+            {
+                Debug.Log($"Failed to convert: {lError.ToString()}");
+            }
 
 
             return null;
             return null;
         }
         }