WEBVTT

00:00:03.400 --> 00:00:05.687
Here's Gem Island, with a crate and a barrel

00:00:05.687 --> 00:00:08.474
made from GameStudio's kits, both selected.

00:00:08.474 --> 00:00:12.149
To reuse them, open Game Assets in the 3D View's header.

00:00:12.700 --> 00:00:14.575
There are no asset libraries yet.

00:00:14.581 --> 00:00:16.805
Click Add Selected to Library.

00:00:17.500 --> 00:00:19.410
The library is called props:

00:00:19.497 --> 00:00:20.728
it's saved in your project's

00:00:20.728 --> 00:00:23.207
assets folder, as props dot blend.

00:00:23.293 --> 00:00:25.314
Tick One Asset per Object,

00:00:25.314 --> 00:00:28.153
so the crate and the barrel become two assets.

00:00:28.733 --> 00:00:30.892
Tick Replace with Instance, so the ones in

00:00:30.892 --> 00:00:33.534
the level become copies of the library too.

00:00:34.100 --> 00:00:35.516
Prefab stays on:

00:00:35.516 --> 00:00:37.362
library assets are prefabs,

00:00:37.362 --> 00:00:39.447
so your game's code can spawn them too.

00:00:39.533 --> 00:00:40.805
Click OK.

00:00:41.367 --> 00:00:43.933
Game Assets now lists the props library:

00:00:43.933 --> 00:00:45.425
the barrel and the crate.

00:00:45.512 --> 00:00:48.444
Place puts a copy at the 3D cursor, on the right.

00:00:48.530 --> 00:00:49.744
Place a barrel.

00:00:50.300 --> 00:00:51.403
Changed your mind?

00:00:51.403 --> 00:00:53.075
Replace swaps the selected copy

00:00:53.075 --> 00:00:54.956
for another asset, in the same spot.

00:00:54.956 --> 00:00:56.169
Make it a crate.

00:00:56.733 --> 00:00:58.904
Every copy only links to the library.

00:00:58.904 --> 00:01:00.838
Save the level with Control S.

00:01:01.400 --> 00:01:02.747
Now change the original.

00:01:02.747 --> 00:01:06.294
It's in the library file, so press Control O to open it.

00:01:06.867 --> 00:01:08.829
You're in the project's scenes folder.

00:01:08.829 --> 00:01:10.321
Go up one folder.

00:01:10.900 --> 00:01:14.076
Click the assets folder, where the libraries live,

00:01:14.633 --> 00:01:16.276
and click Open to go in.

00:01:17.133 --> 00:01:19.984
Click props dot blend, the library file,

00:01:20.567 --> 00:01:21.746
and open it.

00:01:23.067 --> 00:01:24.397
This is the library:

00:01:24.402 --> 00:01:27.346
each asset is a collection, standing at the origin.

00:01:27.432 --> 00:01:28.750
Click the crate.

00:01:29.333 --> 00:01:30.355
Make it bigger:

00:01:30.355 --> 00:01:33.577
press S, type one point five, and press Enter.

00:01:34.333 --> 00:01:36.533
Save the library with Control S.

00:01:37.100 --> 00:01:38.418
Now back to the level.

00:01:38.458 --> 00:01:41.762
Shift Control O lists the files you opened recently.

00:01:42.333 --> 00:01:43.883
Choose main dot blend.

00:01:45.233 --> 00:01:47.392
Back in the level, both crates are bigger,

00:01:47.392 --> 00:01:49.221
the one you placed and the original.

00:01:49.308 --> 00:01:50.858
The barrel didn't change.

00:01:50.864 --> 00:01:55.050
Edit an asset once, and every copy follows, in every level.
