@Override
public Mesh resolve(AssetUri uri, AssetFactory<MeshData, Mesh> factory) {
String[] parts = uri.getAssetName().toLowerCase().split("\\.", 2);
if (parts.length == 2 && parts[0].equals(ICON_DISCRIMINATOR)) {
TextureRegion region = Assets.getTextureRegion(uri.getModuleName() + AssetUri.MODULE_SEPARATOR + parts[1]);
if (region != null) {
return IconMeshFactory.generateIconMesh(uri, region);
}
}
return null;