Version: 2021.1
언어: 한국어

HelpBoxConstructor

매뉴얼로 전환
public HelpBox ();
public HelpBox (string text, UIElements.HelpBoxMessageType messageType);

파라미터

text The message text.
messageType The type of message.

설명

Creates a new HelpBox.

using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine.UIElements;

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)); } }