Skip to main content

InworldUIElement

Module: Inworld.AI. Namespace: Inworld.UI.

This is the base class used in rendering UI element in the runtime.

Variables

VariablesDescription
Iconthe icon used in the UI element.
Titlethe title text in the UI element.

Properties

PropertiesDescription
HeightGets the bubble's height.
IconGet/Set the Thumbnail of the bubble. NOTE: For the worldspace's floating text, Icon will not be displayed.
TitleGets/Sets the name of the thumbnail.

API

FunctionsDescriptionParameters
SetBubbleSet the bubble's property.charName: The bubble's owner's name.
thumbnail: The bubble's owner's thumbnail.
text:The bubble's content
SetBubbleWithPacketInfoSet the bubble's property by InworldPacketcharName:The bubble's owner's name
interactionID:The bubble's interaction ID
correlationID: The bubble's correlation ID
thumbnailThe bubble's owner's thumbnail.
text: The bubble's content.
AttachBubbleAttach text to the current bubble.text: the text to add.

CharacterButton

Module: Inworld.AI. Namespace: Inworld.UI. Inherited from InworldUIElement.

VariablesDescription
DataThe InworldCharacterData displays in the button.
CharThe InworldCharacter displays in the button.
FunctionsDescriptionParameters
SetDataSet the character's data.data: The InworldCharacterData to set.
SelectCharacterSelect this character to interact with.
GetCharacterGet this character displayed in the button.

ChatBubble

Module: Inworld.AI. Namespace: Inworld.UI. Inherited from InworldUIElement, IPointerUpHandler, IPointerDownHandler.

VariablesDescription
TextFieldThe content text in the bubble.
PropertiesDescription
TextGet/Set the bubble's main content.
FunctionsDescriptionParameters
SetBubbleSet the bubble's property.charName: The bubble's owner's name.
thumbnail: The bubble's owner's thumbnail.
text:The bubble's content
SetBubbleWithPacketInfoSet the bubble's property by InworldPacketcharName:The bubble's owner's name
interactionID:The bubble's interaction ID
correlationID: The bubble's correlation ID
thumbnailThe bubble's owner's thumbnail.
text: The bubble's content.
AttachBubbleAttach text to the current bubble.text: the text to add.
OnPointerDownTriggers when mouse is clicked down.eventData: the PointerEventData got in the Unity engine.
OnPointerUpTriggers when mouse is clicked up.eventData: the PointerEventData got in the Unity engine.

ConnectButton

Module: Inworld.AI. Namespace: Inworld.UI.

VariablesDescription
StatusThe text component for displaying InworldConnectionStatus.
ConnectButtonThe connect button.
ButtonTextThe text on the button.
FunctionsDescriptionParameters
ConnectInworldManages the InworldController connection with the Inworld server

RecordButton

Module: Inworld.AI. Namespace: Inworld.UI. Inherited from MonoBehavior, IPointerUpHandler, IPointerDownHandler.

FunctionsDescriptionParameters
OnPointerDownTriggers when this button is hold down.eventData: The PointerEventData from Unity.
OnPointerUpTriggers when this button is released.eventData: The PointerEventData from Unity.