예제 #1
0
        private void RefreshSizeInfo()
        {
            UIUtils.SetElementDisplay(detailSizesContainer, displayVersion.sizes.Any());
            detailSizes.Clear();

            var sizeInfo = displayVersion.sizes.FirstOrDefault(info => info.supportedUnityVersion == displayVersion.supportedVersion);

            if (sizeInfo == null)
            {
                sizeInfo = displayVersion.sizes.LastOrDefault();
            }

            if (sizeInfo != null)
            {
                detailSizes.Add(new Label($"Size: {UIUtils.convertToHumanReadableSize(sizeInfo.downloadSize)} (Number of files: {sizeInfo.assetCount})"));
            }
        }