From the course: Unreal: Blueprint

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Variables Get and Set

Variables Get and Set - Unreal Engine Tutorial

From the course: Unreal: Blueprint

Start my 1-month free trial

Variables Get and Set

- [Instructor] Now we're gonna take a look at how we can use the Get and Set loads. So I'm gonna open up our BP_EXAMPLE. And I'm gonna grab my Variable_01 and drop down these sets. Okay, and so we have a few things we need to set. One, of course, is what event is driving it? And then, what data we're sending to it? So to drive it, I will do an Event Tick, just sort of our basic ... Just give us a little tick, as we're playing constantly. And then for some data, let's just grab the seconds of the game. So I'm gonna right-click, type get game time and seconds. You see, we have this lighter green, so that is a float. I'm gonna drag out of there. Type round. We'll round this to an integer, and then we will flow that in there. Okay. So now, that's all we need to do. Now we're just setting that variable. To illustrate that we're getting that proper data flowing, what I'm gonna do is I'm gonna drag out of the set, into this value pin of our Format Text mode, and then drag out of our event…

Contents