States are used to show different states of an object and for animating between them. Some examples you can use States for are:
The State Machine is a visual representation of the states and behaviors of each object based on events and trigger objects. Simply said, you can add states to objects and draw arrows between them to define how the transition between then would happen.
Open the ‘Prototype’ panel by clicking on the lightening icon on the top toolbar
Make sure that the object you want to add states to is selected. You’ll see that every object always contains two state nodes: Base State and Any State
In the State Machine panel at the bottom, press ‘+ New State’ to add a new state to the selected object
Changes are saved to the currently selected state