/// <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); }
/// <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 a string, an image and a tooltip.</summary> 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> public GUIContent(LocString text, GUIContentImages image) { this.text = text; this.images = image; this.tooltip = null; }
/// <summary>Constructs content with an image and a tooltip.</summary> public GUIContent(GUIContentImages image, LocString tooltip) { this.text = null; this.images = image; this.tooltip = tooltip; }
/// <summary>Constructs content with just an image.</summary> public GUIContent(GUIContentImages image) { this.text = null; this.images = image; this.tooltip = null; }
/// <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; }