# Asset libraries and prefabs

Make props once, place copies, edit them all at once

Click-by-click video tutorial, 1:59. GameStudio 0.1.0, Blender 5.2.2 or newer.

## 00:03 Step 1: Open Game Assets

Here's Gem Island, with a crate and a barrel made from GameStudio's kits, both selected. To reuse them, open Game Assets in the 3D View's header.

## 00:12 Step 2: Click Add Selected to Library...

There are no asset libraries yet. Click Add Selected to Library.

## 00:17 Step 3: Tick One Asset per Object

The library is called props: it's saved in your project's assets folder, as props dot blend. Tick One Asset per Object, so the crate and the barrel become two assets.

## 00:28 Step 4: Tick Replace with Instance

Tick Replace with Instance, so the ones in the level become copies of the library too.

## 00:33 Step 5: Click OK

Prefab stays on: library assets are prefabs, so your game's code can spawn them too. Click OK.

## 00:41 Step 6: Click Place for the barrel

Game Assets now lists the props library: the barrel and the crate. Place puts a copy at the 3D cursor, on the right. Place a barrel.

## 00:50 Step 7: Click Replace for the crate

Changed your mind? Replace swaps the selected copy for another asset, in the same spot. Make it a crate.

## 00:56 Step 8: Press Ctrl+S to save

Every copy only links to the library. Save the level with Control S.

## 01:01 Step 9: Press Ctrl+O to open a file

Now change the original. It's in the library file, so press Control O to open it.

## 01:06 Step 10: Go up to the project folder

You're in the project's scenes folder. Go up one folder.

## 01:10 Step 11: Click the assets folder

Click the assets folder, where the libraries live,

## 01:14 Step 12: Click Open

and click Open to go in.

## 01:16 Step 13: Click props.blend

Click props dot blend, the library file,

## 01:20 Step 14: Click Open

and open it.

## 01:22 Step 15: Click the crate

This is the library: each asset is a collection, standing at the origin. Click the crate.

## 01:29 Step 16: Press S, type 1.5, Enter

Make it bigger: press S, type one point five, and press Enter.

## 01:34 Step 17: Press Ctrl+S to save it

Save the library with Control S.

## 01:36 Step 18: Press Shift+Ctrl+O

Now back to the level. Shift Control O lists the files you opened recently.

## 01:42 Step 19: Choose main.blend

Choose main dot blend.

## 01:45 Done: Every copy follows the library

Back in the level, both crates are bigger, the one you placed and the original. The barrel didn't change. Edit an asset once, and every copy follows, in every level.
