Function Library and Local Variables


this question should be easy for anybody who is familiar with blueprints, but i do not get it :smiley:

If i have a local variable and use it in a function, will this variable be set to default (e.g. zero with integer) whenever i call the function?

Or will this variable keep its value?

Is this variable just a helper to store things meanwhile? Will every call of the function use its own “local variable”?

These questions are overlaping with the meaning, but i think, you know what i wanna know :smiley:

Kind regards

Yea I totally get what you mean :wink:

It is in fact like you assumed. The variables are cleared every time they are used just to store things for some calculations inside of the function.


perfect. now i can proceed my work. thanks :smiley: