public static ImageData GetIcon(MaterialIconEnum iconEnum) { return(GetIcon(iconEnum.ToString().ToLower())); }
public static ImageData GetIcon(MaterialIconEnum iconEnum) { return GetIcon(iconEnum.ToString().ToLower()); }
public static ImageData GetIcon(string set, MaterialIconEnum name) { VectorImageSet iconSet = VectorImageManager.GetIconSet(set); Glyph glyph = iconSet.iconGlyphList.FirstOrDefault(x => x.name.ToLower().Equals(name.ToString().ToLower())); Font font = VectorImageManager.GetIconFont(set); if (glyph == null) { Debug.LogError("Could not find an icon with the name: " + name + " inside the MaterialDesign icon font"); return(null); } return(new ImageData(new VectorImageData(glyph, font))); }