Esempio n. 1
0
        public static Texture2D FindIcon(this System.Type type)
        {
            var name = type.IsPrimitive ? type.CSharpName(false) : type.CSharpFullName(false);

            var icon = UAliveIcons.IconFromPathLudiq(name, UAliveIcons.IconSize.Medium);

            if (icon != null)
            {
                return(icon);
            }

            icon = UAliveIcons.IconFromPathBoltFlow(name, UAliveIcons.IconSize.Medium);

            if (icon == null)
            {
                return(icon);
            }

            icon = UAliveIcons.IconFromPathBolt(name, UAliveIcons.IconSize.Medium);

            return(icon);
        }
Esempio n. 2
0
 public static string AsActualName(System.Type type)
 {
     return(type.CSharpName(true));
 }