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.

Keyboard and game controller input

Keyboard and game controller input - Unreal Engine Tutorial

From the course: Unreal: Blueprint

Start my 1-month free trial

Keyboard and game controller input

- [Instructor] Now we're gonna take a look at how we can wire in input from both keyboard and game controller events to change things in our scene via blueprints. So the first thing we're gonna do is we're gonna make a new blueprint. So, in our 05_BP folder, right-click, blueprint class, actor, call this BP_MATERIAL_01. Okay, let's open this up. And I will dock it up to our main thing here and go to our event graph, and as usual, just gonna delete all this stuff out. So the first thing we need to do is we need to enable input, because sometimes we're making a kind of blueprint, like a player controller, something that automatically knows it's gonna receive input. But sometimes, we're making something custom that really is just controlling some other element of the scene, but that blueprint needs to know that it's allowed to, basically, ingest inputs from things. So we wanna right-click and go enable, input, okay. And now what we need to do is I'm gonna make an event, BeginPlay, so it…

Contents