API reference

WitEditorUI Class

Static Methods

GetFoldoutValue ( bindObject )
Signature
static bool Meta.WitAi.WitEditorUI.GetFoldoutValue(object bindObject)
Parameters
bindObject: object
Returns
bool
LayoutEnumField< T > ( key , fieldValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutEnumField< T >(GUIContent key, ref T fieldValue, ref bool isUpdated)
Parameters
key: GUIContent
fieldValue: ref T
isUpdated: ref bool
Returns
void
LayoutErrorLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutErrorLabel(string text)
Parameters
text: string
Returns
void
LayoutFoldout ( key , bindObject )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutFoldout(GUIContent key, object bindObject)
Parameters
key: GUIContent
bindObject: object
Returns
bool
LayoutFoldout ( key , wasFoldout )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutFoldout(GUIContent key, bool wasFoldout)
Parameters
key: GUIContent
wasFoldout: bool
Returns
bool
LayoutHeaderButton ( headerTexture , headerURL , docsUrl )
Signature
static void Meta.WitAi.WitEditorUI.LayoutHeaderButton(Texture2D headerTexture, string headerURL, string docsUrl)
Parameters
headerTexture: Texture2D
headerURL: string
docsUrl: string
Returns
void
LayoutHeaderLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutHeaderLabel(string text)
Parameters
text: string
Returns
void
LayoutHeaderText ( text , headerURL , docsUrl )
Signature
static void Meta.WitAi.WitEditorUI.LayoutHeaderText(string text, string headerURL, string docsUrl)
Parameters
text: string
headerURL: string
docsUrl: string
Returns
void
LayoutIconButton ( icon )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutIconButton(GUIContent icon)
Parameters
icon: GUIContent
Returns
bool
LayoutIntField ( key , fieldValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutIntField(GUIContent key, ref int fieldValue, ref bool isUpdated)
Parameters
key: GUIContent
fieldValue: ref int
isUpdated: ref bool
Returns
void
LayoutKeyLabel ( key , text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutKeyLabel(string key, string text)
Parameters
key: string
text: string
Returns
void
LayoutKeyObjectLabels ( key , obj )
Signature
static void Meta.WitAi.WitEditorUI.LayoutKeyObjectLabels(string key, object obj)
Parameters
key: string
obj: object
Returns
void
LayoutLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutLabel(string text)
Parameters
text: string
Returns
void
LayoutLockedTextField ( key , fieldValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutLockedTextField(GUIContent key, ref string fieldValue, ref bool isUpdated)
Parameters
key: GUIContent
fieldValue: ref string
isUpdated: ref bool
Returns
void
LayoutPasswordField ( key , fieldValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutPasswordField(GUIContent key, ref string fieldValue, ref bool isUpdated)
Parameters
key: GUIContent
fieldValue: ref string
isUpdated: ref bool
Returns
void
LayoutPopup ( key , options , selectionValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutPopup(string key, string[] options, ref int selectionValue, ref bool isUpdated)
Parameters
key: string
options: string []
selectionValue: ref int
isUpdated: ref bool
Returns
void
LayoutPopupField ( key , options , selectedOption , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutPopupField(GUIContent key, string[] options, ref string selectedOption, ref bool isUpdated)
Parameters
key: GUIContent
options: string []
selectedOption: ref string
isUpdated: ref bool
Returns
void
LayoutProperty ( serializedObject , propertyName )
Signature
static void Meta.WitAi.WitEditorUI.LayoutProperty(SerializedObject serializedObject, string propertyName)
Parameters
serializedObject: SerializedObject
propertyName: string
Returns
void
LayoutSerializedObjectPopup ( serializedObject , propertyName , names , index )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutSerializedObjectPopup(SerializedObject serializedObject, string propertyName, string[] names, ref int index)
Parameters
serializedObject: SerializedObject
propertyName: string
names: string []
index: ref int
Returns
bool
LayoutStatusLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutStatusLabel(string text)
Parameters
text: string
Returns
void
LayoutSubheaderLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutSubheaderLabel(string text)
Parameters
text: string
Returns
void
LayoutTabButton ( tabTitle )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutTabButton(string tabTitle)
Parameters
tabTitle: string
Returns
bool
LayoutTabButtons ( tabTitles , selection )
Signature
static void Meta.WitAi.WitEditorUI.LayoutTabButtons(string[] tabTitles, ref int selection)
Parameters
tabTitles: string []
selection: ref int
Returns
void
LayoutTextButton ( text )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutTextButton(string text)
Parameters
text: string
Returns
bool
LayoutTextField ( key , fieldValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutTextField(GUIContent key, ref string fieldValue, ref bool isUpdated)
Parameters
key: GUIContent
fieldValue: ref string
isUpdated: ref bool
Returns
void
LayoutTextLink ( text )
Signature
static bool Meta.WitAi.WitEditorUI.LayoutTextLink(string text)
Parameters
text: string
Returns
bool
LayoutToggle ( key , toggleValue , isUpdated )
Signature
static void Meta.WitAi.WitEditorUI.LayoutToggle(GUIContent key, ref bool toggleValue, ref bool isUpdated)
Parameters
key: GUIContent
toggleValue: ref bool
isUpdated: ref bool
Returns
void
LayoutWindow ( windowTitle , windowHeader , windowHeaderUrl , windowInfoUrl , windowContentLayout , offset , size )
Signature
static void Meta.WitAi.WitEditorUI.LayoutWindow(string windowTitle, Texture2D windowHeader, string windowHeaderUrl, string windowInfoUrl, Action windowContentLayout, ref Vector2 offset, out Vector2 size)
Parameters
windowTitle: string
windowHeader: Texture2D
windowHeaderUrl: string
windowInfoUrl: string
windowContentLayout: Action
offset: ref Vector2
size: out Vector2
Returns
void
LayoutWrapLabel ( text )
Signature
static void Meta.WitAi.WitEditorUI.LayoutWrapLabel(string text)
Parameters
text: string
Returns
void
SetFoldoutValue ( bindObject , toFoldout )
Signature
static void Meta.WitAi.WitEditorUI.SetFoldoutValue(object bindObject, bool toFoldout)
Parameters
bindObject: object
toFoldout: bool
Returns
void