Spawning Actors UE5

Chris Didier
2 min readMay 15, 2022

We are going to be creating actors to our scene while we are playing our scene. We are going to create our projectiles when we press the space bar.

We’re going to delete the first sphere from our scene. We also our going to create a new pressed event by right clicking and entering the left mouse button. This is normally triggered to fire in most games.

We are going to drag off a spawn actor from class.

  • Spawning- Creating an object while playing
  • Transform — Location, rotation, and scale
  • Return pin- output of node

There are a few things we want to set. We can select the class and select projectile_bp

We are going to right-click on spawn transform and split pin and this will split out the transform into it’s component parts.

We then are going to give the transform the position of X = 60, Y = 0, Z = 120. When this is configured and we press play our projectile will spawn on top of itself.

Our return pin is saying we spawned an actor and we would like to give an impulse to that actor so we will hook them up and give the impulse a X = 500 and we are going to check the vel change box.

When we left-click our projectile is coming towards us.

--

--