// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved. using FlaxEngine; namespace FlaxEditor { [HideInEditor] partial class PreviewsCache { /// /// The default asset previews icon size (both width and height since it's a square). /// public const int AssetIconSize = 64; /// /// The default assets previews atlas size /// public const int AssetIconsAtlasSize = 1024; /// /// The default assets previews atlas margin (between icons) /// public const int AssetIconsAtlasMargin = 4; /// /// The amount of asset icons per atlas row. /// public const int AssetIconsPerRow = (int)((float)AssetIconsAtlasSize / (AssetIconSize + AssetIconsAtlasMargin)); /// /// The amount of asset icons per atlas. /// public const int AssetIconsPerAtlas = AssetIconsPerRow * AssetIconsPerRow; /// /// The default format of previews atlas. /// public const PixelFormat AssetIconsAtlasFormat = PixelFormat.R8G8B8A8_UNorm; } }