KeywordDetectorBuilder
Keyword detector builder.
| Type | Name | Interface Description |
|---|---|---|
| Functions | build(): KeywordDetector | null | • Function: Build the KeywordDetector. Note that the detector should be built in OnInit, otherwise it will return null. |
Examples
build(): KeywordDetector | null
const detector = builder.build();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use KeywordDetectorBuilder here
}
onUpdate(deltaTime: number) {
}
}