メインコンテンツへスキップ

facelost

facecontroller.facelost

Description

This event is emitted by Face Effects when a face is no longer being tracked.

Event Properties

facecontroller.facelost.data : { id }

PropertyTypeDescription
idNumberA numerical id of the face that was lost.

Example

ecs.registerComponent({
name: 'facelost',
add: (world, component) => {

const lost = ({data}) => {
const {id} = data
doSomething(id)
}

world.events.addListener(world.events.globalId, 'facecontroller.facelost', lost)
},
})