Class PrefabSpawnerSample
A script that spawns and destroys a number of AssetReferences after a given delay.
Inherited Members
Namespace: Global Namespace
Syntax
public class PrefabSpawnerSample : MonoBehaviour
Fields
Name | Description |
---|---|
DealyBeforeDestroying | The time, in seconds, to delay before destroying the spawned prefabs. |
DelayBetweenSpawns | The time, in seconds, to delay before spawning prefabs. |
NumberOfPrefabsToSpawn | The number of prefabs to spawn. |
SpawnablePrefab | The prefab to spawn. |