private ResourceInfo GetResourceInfo(string assetName, AssetCategory assetCategory) { if (string.IsNullOrEmpty(assetName)) { return(null); } AssetInfo assetInfo = m_ResourceComponent.GetAssetInfo(assetName, assetCategory); if (assetInfo == null) { return(null); } return(m_ResourceComponent.GetResourceInfo(assetInfo.ResourceName, assetCategory)); }