Exemple #1
0
        /// <summary>Initializes the struct with default values.</summary>
        public static GUIContent Default()
        {
            GUIContent value = new GUIContent();

            value.text    = null;
            value.images  = GUIContentImages.Default();
            value.tooltip = null;

            return(value);
        }
Exemple #2
0
 /// <summary>Constructs content with a string and a tooltip.</summary>
 public GUIContent(LocString text, LocString tooltip)
 {
     this.text    = text;
     this.images  = GUIContentImages.Default();
     this.tooltip = tooltip;
 }