Skip to main content

Scene.IComponentEventSpy

A spy that can be attached to be notified of a component events using spyOnEvent

Properties
Methods

Properties

eventType

eventType: (readonly) string

The type of event to spy on

Methods

onEvent

onEvent(eventData?: T): void

Called when the attached component notifies of an eventType event

ParameterType
eventData?T
the data associated with the event