Jump to content

Models vs Prefab


tjheldna
 Share

Recommended Posts

They're both the same in terms of computational efficiency, but if you use a prefab you only have to set up physics and stuff once, and you can always modify that single prefab and all instances of it will be updated.

 

So really the map designer should always be drawing from the "Prefabs" folder. The person designing the props should be preparing them as prefabs for final use.

  • Upvote 2

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

At the moment you need to keep the original in the level somewhere to be able to edit.

 

I posted in a separate topic which I must not have worded properly and I forgot to respond to.

 

It would be real nice if a prefab was created and edited like a world as mentioned they are basically a world anyway. For example you can open up or save as a prefab in the world editor, or a separate editor window, make your changes and then save. This would eliminate the need for a base model in the level too.

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Link to comment
Share on other sites

How do you modify a prefab and have all instances be affected? If I drag in a prefab to the scene and modify something it tells me it'll break the fact that it's a prefab.

Go to File > Open and choose .*.pfb for the file extension. Prefabs files are really just .map files with a different extension.

 

It would be real nice if a prefab was created and edited like a world as mentioned they are basically a world anyway. For example you can open up or save as a prefab in the world editor, or a separate editor window, make your changes and then save. This would eliminate the need for a base model in the level too.

Wow, documentation fail. That's exactly how it works.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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

 Share

×
×
  • Create New...