Skip to content

AI Caption

Updated

Shows the owning Agent’s Speech To Text output as transient text.

Type
comp-ai-caption
Script class
AICaptionComponent
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
fontSize 0.001 ≤ x ≤ 4096
insetX -16384 ≤ x ≤ 16384
insetY -16384 ≤ x ≤ 16384
padding 0 ≤ x ≤ 16384
panelOffset
panelOffset.x
panelOffset.y
panelOffset.z
panelOrientation
panelOrientation.x
panelOrientation.y
panelOrientation.z
panelWidth 0.001 ≤ x ≤ 16384
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(AICaptionComponent);
if (component) log(component.props);
}