Planning to place a lot of buildings in your game?
Prefabricator is a total game changer for automatically producing variety of buildings. All you need to do is to create doors, walls and rooftops and Prefabricator – so called Prefab – will do the rest. And it’s free.
How to use Prefabricator?
Instalation
- – Log into unrealengine.com and download Prefabricator from the Marketplace here (Free)
- – Launch Epic Games and find Prefabricator in your vault, then added it to the engine
- – Open your project and go to edit -> plugins and enable Prefabricator
- – Restart the project
Create Prefab Asset
- – Prefab Asset will be used to randomize in Prefab Asset Collection
- – Find Prefab in toolbar and create Prefab Asset from selection
- – Create as many prefab assets as you need
Create Prefab Asset Collection
- – Right Click in Content Browser and go Prefabricator -> Prefab Collection
Use Prefab Asset Collection
- – Click + to add Prefab Assets you just created
- – Place Prefab Collection in your scene
- – Go to details and click Randomize
How heavy is Prefabricator?
Now let’s take a look at the damage. I have done some experiments to save your time.
Engine: 4.22.3
- – Base Cost
- 22ms
- Mesh Draw calls: 198
- DrawPrimitive calls: 854
- – Test 1 – Static Mesh
- 45ms
- Mesh Draw calls: 110
- DrawPrimitive calls: 2965
- – Test 2 – Prefabed Static Mesh
- 44ms
- Mesh Draw calls: 111
- DrawPrimitive calls: 2951
- – Test 3 – BP with Instanced Static Meshes Start with NO tick
- 127ms
- Mesh Draw calls: 37,665
- DrawPrimitive calls: 40465
- – Test 4 – BP with Static Mesh Start with NO tick
- 48ms
- Mesh Draw calls: 111
- DrawPrimitive calls: 2974
- – Test 5 – BP with Static Mesh Start with tick
- 48ms
- Mesh Draw calls: 111
- DrawPrimitive calls: 2943
That’s all! For more info of how to use Prefabricator plugin, go to official user guide.