/// <summary>Initializes the struct with default values.</summary> public static GUIContentImages Default() { GUIContentImages value = new GUIContentImages(); value.normal = null; value.hover = null; value.active = null; value.focused = null; value.normalOn = null; value.hoverOn = null; value.activeOn = null; value.focusedOn = null; return(value); }
/// <summary> /// Constructs content with an image and a tooltip. /// </summary> /// <param name="image">Image to be displayed on top of the GUI element.</param> /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param> public GUIContent(GUIContentImages image, LocString tooltip) { this.images = image; this.tooltip = tooltip; }
/// <summary> /// Constructs content with just an image. /// </summary> /// <param name="image">Image to be displayed on top of the GUI element.</param> public GUIContent(GUIContentImages image) { this.images = image; }
/// <summary> /// Constructs content with a string, an image and a tooltip. /// </summary> /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param> /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the /// left of the text depending on active GUI style.</param> /// <param name="tooltip">Tooltip to be displayed when user hovers over a GUI element.</param> public GUIContent(LocString text, GUIContentImages image, LocString tooltip) { this.text = text; this.images = image; this.tooltip = tooltip; }
/// <summary> /// Constructs content with a string and an image. /// </summary> /// <param name="text">Textual portion of the content to be displayed as label in GUI elements.</param> /// <param name="image">Image to be displayed on top of the GUI element. Image will be placed to the right or to the /// left of the text depending on active GUI style.</param> public GUIContent(LocString text, GUIContentImages image) { this.text = text; this.images = image; }
/// <summary>Constructs content with just an image.</summary> public GUIContent(GUIContentImages image) { this.text = null; this.images = image; this.tooltip = null; }