Storing values in variables
A variable is a programming concept. It consists of an identifier that points to a memory location where a value can be stored. For example, a character in a game may have variables to store the value of its health, its speed, and the quantity of ammunition.
A Blueprint can have many variables of various types. The variables of a Blueprint are listed on the My Blueprint panel. Clicking the + button in the VARIABLES category creates a variable:
The type of a variable defines the content that a variable can store. Blueprint is a strongly typed language. This means that you must define the variable type when creating the variable, and this type cannot be modified during program execution.
When you create a variable, its attributes are displayed in the Details panel. The first attribute of a variable is its name, and the second attribute is its type. The various types are as follows: