x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 the components section of the blueprints seems much more cumbersome than the natural editor and there is no easy way to drag groups of objects into the component editor. Any advice?

Product Version: Not Selected
Tags:
more ▼

asked Apr 01 '14 at 03:34 PM in Using UE4

avatar image

lunix
81 14 22 25

avatar image NamInUz Dec 09 '14 at 12:02 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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.

more ▼

answered Apr 01 '14 at 03:39 PM

avatar image

EF
446 9 9 21

avatar image lunix Apr 01 '14 at 04:17 PM

I just tried this and "Create Blueprint" isn't an option. I tried right clicking on the scene outliner and inside the editor

avatar image awilliams1701 Apr 19 '14 at 07:12 PM

I don't see it either. There are 2 ways that I know of to do it. 1) select everything you need and in the property window look for blueprint->replace with composited blueprint. You'll be able to edit the placement of everything inside the blueprint after you do this.

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

avatar image Ash_88mph Sep 02 '15 at 04:57 PM

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

Check the image attached for further details.

I hope this helps :)alt text

avatar image Mugluck Apr 01 '14 at 05:23 PM

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

Alternatively, if you're in the viewport, click on the actor, and in the details panel, right at the 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 the fourth one in, which is probably what you're after.

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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 the details panel under blueprints you can "Replace" with a composite blueprint, which imports all the actors and their components into a blueprint. Not ideal or as easy as prefabs, but it'll do.

Thanks so much for the answers.

more ▼

answered Apr 01 '14 at 05:43 PM

avatar image

lunix
81 14 22 25

avatar image tsmckelvey Apr 01 '14 at 06:41 PM

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

avatar image lunix Apr 01 '14 at 06:47 PM

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)

avatar image Ben Halliday STAFF Apr 01 '14 at 07:29 PM

Hey lunix,

With your brush selected, go to your Details panel. expand the Brush Settings section by clicking the 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 the Collision menu in the Mesh editor.

Hope that helps!

Ben Halliday

avatar image lunix Apr 01 '14 at 07:38 PM

You da best Ben! Cheers!

avatar image tsmckelvey Apr 02 '14 at 07:18 PM

Oh yeah, forgot to mention the part about collision :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.. the 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...

more ▼

answered Nov 03 '14 at 04:00 PM

avatar image

FreemanChris
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question