Function: registerDescriptor()
function registerDescriptor(
runtime: InteractionRuntime,
descriptor: {
interactables: InteractableDescriptor[];
},
portsFor?: (id: string) => RegisterPorts
): void;
Defined in: webxr-interactions/src/runtime.ts:651
Build a runtime's interactables from a portable descriptor.
Parameters
| Parameter | Type |
|---|---|
runtime | InteractionRuntime |
descriptor | { interactables: InteractableDescriptor[]; } |
descriptor.interactables | InteractableDescriptor[] |
portsFor | (id: string) => RegisterPorts |
Returns
void