Unreal Engine 4 (UE4) How to spawn an actor using the level blueprint and an input from the keyboard and where to spawn in the level.

From the keyboard input that was created, drag the pin from pressed and type spawn and click on spawn actor from class. Click the dropdown list next to class and select the class (class blueprint in this case) to be used for spawning. Where to spawn is done by either getting a location from the level, or be using the location of an existing actor. From the pin of the actor, drag form the pin and find get actor transform to get the location of that actor. Now the get actor transform can be wired to the spawn actor node to the spawn transform pin.



Back to blog

Leave a comment

Please note, comments need to be approved before they are published.