Skip to content

AI Tool

Updated

A script with functions the agent can call.

Type
comp-ai-tool
Script class
AIToolComponent
Per entity
Several
Version
1.0.0

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

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(AIToolComponent);
if (component) log(component.props);
}