How to convert an object to a "prefab"?

Hello all,
I am not sure if this is a question or feature suggestion. I come from using Unity engine pretty extensively and I am entirely new to UE4. I LOVE UE4 and its systems. Creating levels is ultra easy and fun. However, as of yet I have not found a way to save groups of meshes/objectes(brushes) as an asset. In unity these were called prefabs and allowed for anything you created to be reused and placed in different spots. This feature would be highly useful and I think practically essential. I am aware that you can use class blueprints for a similar effect, but doing extensive work in components section of blueprints seems much more cumbersome than natural editor and there is no easy way to drag groups of objects into component editor. Any advice?

You can create blueprints from actors in scene. Just select whatever actors you want in your prefab, right click on them and select Create Blueprint.

I just tried this and “Create Blueprint” isn’t an option. I tried right clicking on scene outliner and inside editor

Yeah, so as EF answered, Blueprints are Unities prefabs. Select any actor in content browser, right click and you’ll see ‘Create Blueprint using…’ Just above save, fifth from bottom of list.

Alternatively, if you’re in viewport, click on actor, and in details panel, right at bottom there will be a box called Blueprint, in which there will be an expander that has a Create… blueprint option.

I recommend going through these videos though, just to familiarise yourself. Creating a class blueprint is fourth one in, which is probably what you’re after.

https://www…com/watch?v=cRhWc2kAhqI&list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE

Alrighty, thanks to you guy’s comments I have figured it out.

You can’t create blueprints from geometry brushes it seems, which sucks and I would really like that feature. However, I have figured out that you can select a bunch of actors (not geometry brushes) and in details panel under blueprints you can “Replace” with a composite blueprint, which imports all actors and their components into a blueprint. Not ideal or as easy as prefabs, but it’ll do.

Thanks so much for answers.

You can convert a brush into a Static Mesh and create a BP from that.

oooohhh?? I’ve tried to figure out how to do that as well. How do you convert a brush into a static mesh? (sorry for being a noob)

Hey lunix,

With your brush selected, go to your Details panel. expand Brush Settings section by clicking little arrow. You’ll see a Create Static Mesh button.

Bear in mind, when you create a Static Mesh this way, it starts with no collision on it. This is a known issue we’re working on, but for now you can open your new Mesh by double clicking it, and add collision via Collision menu in Mesh editor.

Hope that helps!

You da best ! Cheers!

Oh yeah, forgot to mention part about collision :slight_smile:

I don’t see it either. There are 2 ways that I know of to do it.

  1. select everything you need and in property window look for blueprint->replace with composited blueprint. You’ll be able to edit placement of everything inside blueprint after you do this.

  2. create a new blueprint (probably actor based) and import your elements that way. You position them in blueprint editor (or with blueprint code)

it apparently doesn’t have to be an “actor” I just did this using a group of static meshes (a table and a group of duplicated chairs to surround it… chairs each being 2 meshes themselves) and I chose to “replace with Compostied Blueprint” which opened a window allowing me to “Create Blueprint” … which then became available as a “prefab” asset in my content brower.

all I should need to do now, is copy that folder of assets and blueprints to any project folder I want to use a table and chairs grouping in…

Blueprints miss something very important from UDK / Unity Prefabs : you can’t break it back to static meshes …

Actually in current version of UE4 (4.8) you can create a new blueprint from selected objects in level simply selecting “Convert Selected Components to Blueprint Class…” from the “Blueprints” menu in main toolbar (and not right clicking as EF suggested back, probably at time hint was correct).

Check image attached for further details.

I hope this helps :slight_smile:

56840-convert+selected+components+to+blueprint.jpg

1 Like

I am shocked by people sending text descriptions or giving very useful advice to watch a 15 minute video while answering this question. Thank you for a screenshot, this is how it looks in 5.0:

Then “harvest components” will create a static mesh component for each of static meshes in map.

1 Like