UnityEngine.GUIContent.GUIContent C# (CSharp) Method

GUIContent() public method

Build a GUIContent that contains both text, an image and has a tooltip defined. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip.

public GUIContent ( string text, Texture image, string tooltip ) : System
text string
image Texture
tooltip string
return System
        public GUIContent(string text, Texture image, string tooltip)
        {
            this.m_Text = string.Empty;
            this.m_Tooltip = string.Empty;
            this.text = text;
            this.image = image;
            this.tooltip = tooltip;
        }

Same methods

GUIContent::GUIContent ( ) : System
GUIContent::GUIContent ( GUIContent src ) : System
GUIContent::GUIContent ( Texture image ) : System
GUIContent::GUIContent ( Texture image, string tooltip ) : System
GUIContent::GUIContent ( string text ) : System
GUIContent::GUIContent ( string text, Texture image ) : System
GUIContent::GUIContent ( string text, string tooltip ) : System