Interface InteractivityEvent
interface InteractivityEvent {
eventData?: {
eventData: boolean;
id: string;
type: string;
value?: any;
}[];
eventId: string;
}
eventData?: {
eventData: boolean;
id: string;
type: string;
value?: any;
}[];
eventId: string;
}
Properties
Optionalevent Data
eventData?: { eventData: boolean; id: string; type: string; value?: any }[]
Optional payload schema for the event. Each entry describes one
value carried by the event: an id (the FlowGraph data socket name),
a type (glTF interactivity type name) and an optional default
value. eventData (the boolean) is currently unused.
event Id
eventId: string
Identifier of the event, used to match send and receive blocks.
Description of a KHR_interactivity custom event, as parsed from the glTF
eventsarray. Used by the importer to register the event with the FlowGraph send/receive event blocks.