Prefab
Prefab<
Options> =Readonly<Options> &object
A kind of entity definePrefab declared: what spawn, spawnLocal
and <Entity prefab> take, typed by the body it declares, so spawn
returns an entity whose body’s kind its type carries. A copy of one,
such as { ...wolf }, is the same prefab.
Type Declaration
Section titled “Type Declaration”| Name | Type |
|---|---|
name |
string |
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Options extends PrefabOptions |
PrefabOptions |