docs.unity.cn
    Show / Hide Table of Contents

    Class PrefabSpawnerSample

    A script that spawns and destroys a number of AssetReferences after a given delay.

    Inheritance
    Object
    PrefabSpawnerSample
    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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use