Skip to content

Morph

Updated

Sets initial weights for this model’s blend shapes and exposes live channels to scripts.

Type
comp-morph
Script class
MorphComponent
Per entity
One
Version
1.1.0

Read about it in Skeleton and morphs: 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(MorphComponent);
if (component) log(component.props);
}