Skip to main content
Question

trigger events from a Prototype outside of Figma


Sebastian_icon

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.

2 replies

tank666
  • 4862 replies
  • March 28, 2025

Embed API doesn't meet your requirements?


Sebastian_icon

thanks for the hint! ChatGPT didn’t know about this ðŸ˜…

 

It seems that the Embed API will enable us to do what we need. However, since it all depends on node-ids, it makes it much more complicated than I imagined. 

To trigger specific actions by clicking a button, I have to map all the node-ids before to figure out which button was clicked and then determine for each single button, which event to trigger.

It would be much easier to directly define the events in the interactions in Figma. Multiple buttons could trigger the same event, etc.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings