✅ Solved: How to have a Listener fire a Data Trigger?
Hi, I’ve done some searching but might be using the wrong terms, so apologies if this has come up before.
I’ve got a main artboard which has a Nested Component Artboard inside a Layout in it, which I have set up as ‘Leaf’ and ‘Contain’ so that as I adjust the artboard it maintains it’s aspect ratio. The Component I have nested has a State Machine which tells it to animate when it hears a Trigger that I have set up in my Data tab. Both Artboards have the correct Model hooked up in the Data Bind section. And that works when I play the main artboard and fire the trigger manually.
What I want, is to be able to click anywhere on the Layout of the Nested Component Artboard to fire the Trigger I have in the Data. Which is why I’ve not added a local Trigger on the Nested Component Artboard, as that would result in a hitbox smaller than the rest of the layout. However when I set up a ‘Pointer Up’ Listener on the Layout, the Trigger in my Data is not available as an option to fire?
Is this a deliberate limitation of Data Triggers or is there something else I must do to make the Data Trigger available to the Listener?
Thanks for any help!
-Olly