Inputs are the contract between designers and developers. As Designers, we use Inputs as a way to control the transitions in our state machine by assigning them as conditions. Developers tie into the inputs at runtime and define conditions through code that can change those inputs.
To create a new Input, use the plus button in the input panel. After hitting the plus button, you’ll be prompted to select the type of input you want to create. There are three types of inputs; booleans, triggers, and numbers.
We can use three types of inputs depending on the situation and type of interactive content: booleans, triggers, and numbers. We'll discuss each of these inputs below.
Be sure to rename your inputs as these names will be important for your developer counterpart.
A boolean can hold either a true or false value.
Boolean for a switch
Booleans are useful when we want to make assets like switches, or check for more complex logic like a match 3 game.
Triggers are similar to booleans, but can only become true for a short time.
Trigger for attack animation
These inputs are great to use for things like gun fire, jumps, or as a simple way to toggle between multiple animations.
A number input give you a number box that can be any integer.
Numer input for rating animation
Number inputs are easily the most flexible input. They are great to use when you want to track progress, or play a specific state thats in an array like a character skin.