Interacting with Unreal Engine
Overview
Sending Input to Unreal Engine
/** Emit an event towards the UE Application.
* Mainly used to bubble events like a button press or other command inputs towards the UE Application. */
Application.emitUIInteraction(descriptor: object | string): void;Example: emitUIInteraction
// Define the interaction command as per Unreal Engine's expected format
const interactionCommand = {
type: "interact",
payload: {
action: "Jump",
value: "true"
}
};
// Send the interaction command to Unreal Engine
Application.emitUIInteraction(interactionCommand);Receiving Responses
Handling Application Responses
Example: getApplicationResponse
Summary
01.2. Pixel Streaming Input / Json messagesLast updated