public static string GetAssetPath(this SystemIcon.IconType type) { return(typeof(SystemIcon.IconType) .GetField(type.ToString()) .GetCustomAttributes(typeof(AssetPathAttribute), false) .Cast <AssetPathAttribute>() .Single().Name); }
public Texture2D GetIconTexture(SystemIcon.IconType type) { return(m_iconAsset[type]); }