API

Interface InteractivityEvent

Description of a KHR_interactivity custom event, as parsed from the glTF events array. Used by the importer to register the event with the FlowGraph send/receive event blocks.

interface InteractivityEvent {
    eventData?: {
        eventData: boolean;
        id: string;
        type: string;
        value?: any;
    }[];
    eventId: string;
}
Index
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.

eventId: string

Identifier of the event, used to match send and receive blocks.