menu_bookDocumentation
Prefab Templates: Adding Custom Prefabs to the s&box Create Menu
s&box Prefab Templates let you add custom prefabs to the GameObject Create menu in the scene editor.
Setup
Enable "Show In Menu" on a Prefab File in the inspector. The prefab will then appear as an option in the Create menu. Configure additional settings:
- Menu Path — Place the template in a sub-menu (e.g., "Effects/Rain")
- Menu Icon — Custom icon for the menu entry
- DontBreakAsTemplate — Controls whether the prefab reference is maintained after creation:
Use Cases
- Provide team members with pre-configured GameObjects (cameras, spawn points, triggers)
- Create reusable effect prefabs accessible from the right-click menu
- Build a library of common game objects for rapid scene assembly
Was this helpful?