Jump to content
  • entries
    945
  • comments
    5,899
  • views
    930,138

How to make a prefab


Josh

5,806 views

 Share

Step 1. Build the object you want to make into a prefab. Here I have staircase I want to make into a reusable object.

blogentry-1-0-86804200-1345400173_thumb.jpg

 

Step 2. Drag all the objects onto one, to make it a parent of the others. Prefabs need one top-level entity.

blogentry-1-0-08840800-1345400313_thumb.jpg

 

Step 3. Click on the top-most object in the hierarchy and select the "Save as Prefab" menu item. You'll get a file save dialog so you can choose the file to save.

blogentry-1-0-01949000-1345400321_thumb.jpg

 

Step 4. Begin using your prefab by dragging it into the scene from the asset browser.

blogentry-1-0-29626500-1345400332_thumb.jpg

 

Prefabs will always be reloaded from the original prefab file. Even if you overwrite the prefab file, your changes will be instantly reflected throughout the entire scene. If you make any changes to an object loaded from a prefab that would make that object so it is no longer instanced, a dialog box will warn you and ask if you want to proceed before turning it into a unique object.

 

Prefabs can be made from all entities in the editor, not just CSG brushes.

  • Upvote 6
 Share

9 Comments


Recommended Comments

Very similar to how Unity does it. I was hoping we could open prefabs in a prefab editor as well as editing them in the scene. But your implementation seems clean, so I am looking forward to this.

Link to comment

Meh, 3D World Studio had prefabs since before it was called 3D World Studio.

 

The editor file open dialog will actually allow you to load prefabs like a map, so you can make your changes with the full editor options and resave them. A smaller prefab editor inside the editor would just be the editor inside itself.

Link to comment

It's like swearing in church Benton smile.png

Looks great Josh, can't wait to play around. smile.png

 

Lol Josh should add it to the swear filter "U*$&y!"

 

jks

 

Prefabs looking nice.

Link to comment

Nice!

 

It would be great not choose path/filename every time you want to make prefab. May be we could choose a prefab folder once and all prefabs will be saved to it automatically without "Save to..." dialog.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...