Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HelpBox

Makes a help box with a message to the user. For more information, refer to UXML element HelpBox.
Read time 6 minutesLast updated 4 days ago

Definition

public class HelpBox : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler

Examples

public class HelpBoxExample : EditorWindow{ [MenuItem("Example/Help Box")] static void ShowWindow() { HelpBoxExample window = (HelpBoxExample)EditorWindow.GetWindow(typeof(HelpBoxExample)); window.Show(); } void OnEnable() { rootVisualElement.Add(new HelpBox("This is a help box", HelpBoxMessageType.Info)); }}

Static Fields

Value

Description

iconErrorUssClassNameThe USS class name for the HelpBoxMessageType.Error state in Elements of this type.
iconInfoUssClassNameThe USS class name for the HelpBoxMessageType.Info state in Elements of this type.
iconUssClassNameThe USS class name for images in Elements of this type.
iconwarningUssClassNameThe USS class name for the HelpBoxMessageType.Warning state in Elements of this type.
labelUssClassNameThe USS class name for labels in Elements of this type.
ussClassNameThe USS class name for Elements of this type.

Constructors

Constructor

Description

HelpBox()Creates a new HelpBox.
HelpBox(System.String,UnityEngine.UIElements.HelpBoxMessageType)Creates a new HelpBox.

Properties

Property

Description

messageTypeThe type of message.
textThe message text.

Inheritance

Inherited Members