Пример #1
0
 public static string GetAssetPath(this SystemIcon.IconType type)
 {
     return(typeof(SystemIcon.IconType)
            .GetField(type.ToString())
            .GetCustomAttributes(typeof(AssetPathAttribute), false)
            .Cast <AssetPathAttribute>()
            .Single().Name);
 }
Пример #2
0
 public Texture2D GetIconTexture(SystemIcon.IconType type)
 {
     return(m_iconAsset[type]);
 }