Skip to content

AI Dialog

Updated

The visible conversation interface of the agent.

Type
comp-ai-dialog
Script class
AIDialogComponent
Per entity
One
Version
1.1.0

Read about it in Dialog and captions: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
insetX -16384 ≤ x ≤ 16384
insetY -16384 ≤ x ≤ 16384
panelOffset
panelOffset.x
panelOffset.y
panelOffset.z
panelOrientation
panelOrientation.x
panelOrientation.y
panelOrientation.z
panelWidth 320 ≤ x ≤ 960
pixelSize 0.001 ≤ x ≤ 1
screenScale 0.1 ≤ x ≤ 1

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(AIDialogComponent);
if (component) log(component.props);
}