Game Development Community

How to save objects as prefabs?

by 3dblocks · in Constructor · 04/10/2007 (10:54 am) · 4 replies

I have constructed several objects (columns, stairs, so on). And for now I save them as scenes. But how do I save them or what folder do I place them in so they are available under the prefabs tab? This would be very convenient for building larger scenes from my sub assemblies.

Also how to make prefabs available to others in the community?

Thanks for the help.

About the author

Recent Threads

  • How to combine 2 objects?

  • #1
    04/10/2007 (11:02 am)
    Just put them in you prefabs folder or you can create your own folder put them in that one and select that folder as prefab folder in the prefab manager (its called something like that)
    #2
    04/10/2007 (1:35 pm)
    I'd recommend poting a link to the any prefabs you want to make public in THIS forum.
    Here's the URL in case it didn't link properly
    www.garagegames.com/mg/forums/result.thread.php?qt=60451
    #3
    04/10/2007 (3:32 pm)
    Greetings!

    A Prefab may be either a CSX or MAP file. You could place them in the prefabs directory where the Constructor application is located, but I'd recommend that you give them their own directory. Then use the System->Manage Prefabs... menu.

    This will open a new window that lets you add new prefab directories and change the order they will appear under the Prefab tab of the Tools Form. This is where placing them in their own directory is handy as they'll show in their own group under the Prefab tab.

    If you'd like to have a preview thumbnail/icon for your prefab, create a 32x32 bitmap with the same name as your prefab file with a 32 appended to it. For example if your prefab is named ramp.csx then your icon would be ramp32.png.

    The prefab system also supports 64x64 and 128x128 icons but the Tools Form was never updated to take advantage of this. That's why you'll see these sized files in the default prefabs directory.

    If you don't provide an icon then a default one will be used. And don't forget that the Form menu of the Tools Form has options for how to display the prefabs in the list as documented here: tdn.garagegames.com/wiki/Constructor/Reference/ToolsForm

    I hope that helps!

    - Dave
    #4
    04/11/2007 (5:50 am)
    Thanks to all for answers.

    Dave, that was exactly what I wanted to know.