TrackingTarget

TrackingTarget

Extends

Members

container :Container

scene container linked to this target

Type:

data :object|null

additional target data

Type:
  • object | null

name :string

name of the target

Type:
  • string

tracked :boolean

tracking status of the target

Type:
  • boolean

type :string

type of the target

Type:
  • string

Methods

off(eventName, eventHandler)

Inherited From:
Parameters:
Name Type Description
eventName string
eventHandler function

on(eventName, eventHandler)

Inherited From:
Parameters:
Name Type Description
eventName string
eventHandler function

once(eventName, eventHandler)

Inherited From:
Parameters:
Name Type Description
eventName string
eventHandler function

Events

found

fires when the particular target is recognized by the tracker

lost

fires when the particular target is no longer recognized by the tracker