cs-util-com/cscore

View on GitHub
CsCore/CsCoreUnity/Plugins/CsCoreUnity/com/csutil/io/ImageLoaderUnity.cs

Summary

Maintainability
A
1 hr
Test Coverage

Method LoadAndPersistTo has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static async Task<Texture2D> LoadAndPersistTo(IFileRef imgRef, DirectoryEntry targetDir, int thumbnailPixelWidth, Action<Texture2D> showTexture) {
            Texture2D tempThumbTexture = null;
            var hasAlpha = imgRef.mimeType == "image/png";
            if (imgRef.fileName != null) { // Try load local thumbnail as quick as possible:
                var i = targetDir.GetChild(imgRef.fileName);

    There are no issues that match your filters.

    Category
    Status