Scene.EventPath
A path to a component's event property
Methods
bind
bind(emitPath: Scene.EmitPath): void
Bind this path to an EmitPath.
| Parameter | Type |
|---|---|
| emitPath | Scene.EmitPath |
disable
disable(): void
Disable this.emit and the associated Component's onEvent from being triggered
emit
emit(payload: T): void
Emit the event associated with this path. This is similar to calling IComponent.onEvent directly.
| Parameter | Type |
|---|---|
| payload | T |
enable
enable(): void
Enable this.emit and the associated Component's onEvent so it can receive the event again