GUIContent
The contents of a GUI element.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public class GUIContent
Remarks
This works closely in relation with GUIStyle. GUIContent defines to render and GUIStyle defines to render it.
whathowAdditional Resources: GUIStyle
Static Fields
Value | Description |
|---|---|
| none | Shorthand for empty content. |
Constructors
Constructor | Description |
|---|---|
| GUIContent() | Constructor for GUIContent in all shapes and sizes. |
| GUIContent(System.String) | Build a GUIContent object containing only text. |
| GUIContent(System.String,System.String) | Build a GUIContent containing some |
| GUIContent(System.String,UnityEngine.Texture) | Build a GUIContent object containing both |
| GUIContent(System.String,UnityEngine.Texture,System.String) | Build a GUIContent that contains both |
| GUIContent(UnityEngine.GUIContent) | Build a GUIContent as a copy of another GUIContent. |
| GUIContent(UnityEngine.Texture) | Build a GUIContent object containing only an image. |
| GUIContent(UnityEngine.Texture,System.String) | Build a GUIContent containing an image. When the user hovers the mouse over it, the global _tooltip is set to the |