IMGUIHyperLabel CreateLabel(string title, string icon, string iconFolder)
        {
            var image = EditorAssetDatabase.GetTextureAtPath(iconFolder + icon);
            var label = new IMGUIHyperLabel(new GUIContent(title, image), SettingsWindowStyles.DescriptionLabelStyle);

            label.SetMouseOverColor(SettingsWindowStyles.SelectedElementColor);
            return(label);
        }
Beispiel #2
0
 public static Texture2D GetSocialIcon(string iconName)
 {
     return(EditorAssetDatabase.GetTextureAtPath($"{SocialIconsPath}/{iconName}"));
 }