I would like to activate NGUI events through AC's third party playmaker action (playmaker, once accessed, has ready access to NGUI). Trouble is, I don't know how to get to playmaker from AC's menu (I can get to PM easily other ways, e.g. hotspots).
I set up an empty game object (called Quest Log Manager) on which I put a PM FSM that activates the NGUI event (a Quest Log built with NGUI). I also set up an AC interaction (called QuestLogPopup) that activates the Quest Log Manager (by adding AC's Interaction component script, selecting "In Scene" as Action source, "Third-Party Playmaker" as Action type, "Quest Log Manager" as Playmaker FSM, and Quest Log as Playmaker Event to call, which is the first event in the FSM and leads to the NGUI call. That part works fine. I tested it by putting a hotspot on an NPC and mouse-clicked the NPC to activate during game play. The NGUI quest log pops up as it should.
But then which I try to activate it through a menu element I can't find a way to call the AC Interaction "QuestLogPopup" like I could with the hotspot on the NPC. It seems like I should add the element as a button, but none of the button on click events has a way to call an interaction when clicked (as far as I can tell). It's probably very easy and then I can use all of my NGUI work as well as my PlayMaker work in AC. But what am I missing?
Thanks.
Comments
AC Menu Buttons can have their "click type" set to "Run ActionList", but the ActionList referred to here is actually an ActionList asset. This is a special type of ActionList that lives in a prefab, and not in your scene - so that it can be accessed by the menu system no matter what scene you're in.
So, rather than use an Interaction object to call your PM FSM, you'll have to use an asset instead. This tutorial goes over the concept of calling a scene-based object (the FSM) from an asset. But instead of that tutorial's Camera: Switch Action, just use the Third-party: PlayMaker Action. Just be sure to add a ConstantID script to your FSM (as the tutorial explains), and it should work.