Skip to content

SVG

Updated

A vector SVG image.

Type
comp-svg
Script class
SVGComponent
Per entity
One
Version
1.0.0

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

Sent to the entity’s Signal Emitter as { entityId, eventType, data }. Compare eventType with the EventType constants.

  • SVG::ready
  • SVG::error

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