Assign literal variables

Hello. Can i assign literal variables like local in macros without using macros, etc? I just don’t want to create lots of variables which are used once.


In the event graph if you create a variable it’s like declaring a Global variable, if you want to create a Local variable you can create it inside macros and functions.

Many nodes already have a string/float/int input, if they dont you can use “Make literal”, but in this case you are declaring a Constant and not a variable, because its value doesn’t change.

If you use it only one time it’s fine to use a “make literal”, if you want to organize your blueprints you can select all the connected nodes and righ click “collapse to function” and convert it to a local variable

1 Like