using UnityEngine;
namespace UnityEditor.XR.Interaction.Toolkit.Utilities
{
///
/// Content for a popup window. Displays a help box with a message to the user.
///
///
class HelpBoxPopup : PopupWindowContent
{
///
/// The message text.
///
public string message { get; set; }
///
/// The type of message: Info, Warning, or Error.
///
public MessageType messageType { get; set; } = MessageType.Warning;
///
public override Vector2 GetWindowSize() => new Vector2(400f, 60f);
///
public override void OnGUI(Rect rect)
{
EditorGUILayout.HelpBox(message, messageType);
}
}
}