Used to set a string value. On a FSM, click on the bottom-right “Action Browser” button. Choose “Set fsm string” action. Input the variable name that you want to set up in “Variable name”. Input the wanted string in the “set value”. Even if this action seems to be self-explanatory, there is a huge mistake […]
FSM
Call external functions from FSM (send message)

Send Message On a FSM window, go to the “State” Tab. Click on the “Action browser” button, located at the bottom. Then choose “Send message” action. Parameters GameObject : select which game object contains the script with the wanted method to call. Delivery : switch between “send Message”, “send Message Upwards” sends the message in […]
Create a global event

Create a Global Event In the FSM window, go into the Tab “Events”. At the bottom write onto the “Add Event” input, the name of your event. Then you have created a new Event. To make it global, meaning that the event can be seen by other FSMs in other gameObjects, just check the little […]
Add a new FSM

Add a new FSM Right-click on a playmaker window, then choose “Add FSM”. FSM (stands for Finite State Machines) is where the magic happens, where we create and manage our states. You can read a little more on them here.
Adding a new global transition

Adding a global transition in Playmaker : In the FSM window, right click on the wanted state. Choose the “Add Global Transition”, then select the wanted transition name. A Global Transition can be triggered anytime, regardless of the currently active stat; and can be called from an outside FSM.
Adding a Playmaker FSM Global variable

Creating a global var in Playmaker : In the FSM window, click on the Variable Tab on the right. Click on the “Global Variables” button at bottom. On the new window, enter its name in the input field . Then choose its type and click on the “Add” button. One step Further Retrieve Playmaker […]
Adding a Playmaker FSM variable

ingredients needed : Unity, Playmaker Creating a local var in Playmaker : In the FSM window, click on the Variable Tab on the right. Enter its name in the input field. Then choose its type and click on the “Add” button. One step Further Retrieve local Playmaker variable from code
Retrieve Playmaker variable from code

ingredients needed : Unity, Playmaker If we have created some variables in Playmaker like a boolean, we can retrieve it with this code snippet, place under an object that is using a FSM window. Retrieve local variables In this example we got a FSM boolean called “foo” : using HutongGames.PlayMaker; private PlayMakerFSM MyFsm; void Awake(){ […]
Adding a Playmaker FSM action

Create a new action in a FSM windows, by clicking on the “Action Browser” button. Which is located on the bottom right side of the State Tab.
Make transition between Playmaker’s FSM states

Make transitions between FSM states just by drag and drop the transition event of the first state to the second state. (!! you cannot make transition between two states if the first one doesn’t have any transition event !! -in the case above, the “Finished” event)