Interacting with Unreal Engine
newWebRTC.emitUIInteraction({ body_color: "body_color_01" })}newWebRTC.emitUIInteraction({ body_color: "body_color_01", rim_style: "rim_style_02" })}How to use in a project:
const handleSendCommands = (command) => {
newWebRTC.emitUIInteraction(command);
};
return
<div>
<button onClick={() => handleSendCommands({ body_color: "body_color_01" })}>
Change to color 1
</button>
<button onClick={() => handleSendCommands({ body_color: "body_color_02" })}>
Change to color 2
</button>
</div>Last updated