Skip to main content

Scene.ISceneObjectSpy

A spy allows for spying on events triggered on a component from outside of the component system

Properties
Methods

Properties

path

The path to spy on

Methods

onEvent

onEvent(eventData: T): void

Triggered when the data at path changes or when its event is triggered

ParameterType
eventDataT
The data sent with event from a [`IComponent.notify`](#IComponent.notify) call or the new value of the input or output referenced by the path.