From the course: Unreal Engine 5.6 Essential Training

Duplicating objects

- [Instructor] When we work with multiple objects, we may need to duplicate those objects. So let's take a look at how to duplicate objects in Unreal Engine. So I'm in my main content folder, and I have some assets, and I'm going to bring some in, and we'll duplicate them. So let's double click on the assets folder. And then under Cabin Scene, Static Meshes, we should have a couple of different objects. Now the one I'm looking for is called Fencing. So let's just go ahead and left click and drag. And that just brings that object into my level. Now if I can navigate into that, you can see it's basically part of a fence. We need to duplicate this to create an actual fence. Now we can keep left clicking and dragging these assets in, but the easier way is to simply duplicate it. So I want to make sure that the object is selected and then just go Edit, Duplicate. And the hot key for that is Ctrl D. So when I duplicate an object, notice how we have that second object in the outliner, but we really don't see it in the scene, and that's because they're in exactly the same place. So I'm going to go ahead and select my Move tool, and I'm just going to move that along the X axis or the red axis, and just position that exactly the way that we want. So now I have part of a fence. Let's go ahead and do this again, but this time we're going to do this using a different tool. All I have to do is use one of the translation tools such as Move, Rotate, or Scale, and then hold down the Alt key. So if I hold down Alt while the Move tool is selected, I can just left click and drag that out. And that's actually a little bit easier than using Duplicate. And now let's go ahead and make this fence do a right turn. So I need a fence post in there. So I'm going to go ahead and select this fence post, and let's go ahead and move that in. I'm going to hit F to frame that up, and let's make sure that we've got this pretty much where we want. There we go. Now you don't have to duplicate objects one at a time. You can duplicate groups of objects. So I'm going to just go into my outline and shift select all of these fencing objects. And then let's go into rotate. And then I'm also going to turn on snapping. Now this will snap to a specific angle. I'm going to keep it at 10 degrees, and then I should be able to snap and duplicate at the same time. So I'm going to go hold down my Alt key, left click and drag, and drag it to exactly 90 degrees. Go to my Move tool, and let's move those in. And again, I can just zoom in here, frame that up, make sure I'm getting this exactly where I want, right there. Okay, that's centered that way. And then let's do that. Boom, there we go, pretty easy. And as you can see, we can continue that process to fence the entire yard. So duplication is very easy in Unreal Engine. You can simply duplicate from the menu. Use Ctrl D or hold down the Alt key in any one of the Transform tools.

Contents