Rawrshak_Unity-Asset-Viewer-Project/Assets/Rawrshak/Src/Engine/Entities/AssetTypes/Image/SquareAsset.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Rawrshak
{
    public class SquareAsset : ImageAssetBase
    {
        public static float SquareAspectRatio = 1.0f;
        public override bool IsValidAsset()
        {
            foreach(var img in metadata.assetProperties)
            {
                if (!VerifyAspectRatio((float)img.height, (float)img.width, SquareAspectRatio))
                {
                    return false;
                }
            }

            return true;
        }
    }
}
