Exemplo n.º 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);
        }
Exemplo n.º 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;
 }