Issue
We want to implement Figma prototypes in a multi-layer application, which can contain all sorts of other files, like Unity, Unreal, Protopie and they can communicate with each other.
The Figma prototype would run in an iframe and we need a way to listen to events from the Figma prototype, in order to create interactions between the Figma prototype and other applications.
It seems there is currently no way to make Figma work in such an environment.
Feature Request
I imagine there could be an additional option in the interaction window, so that I could add an event to be triggered when a button is clicked. And the iframe which contains the Figma prototype should dispatch this event to out custom JavaScript.