Source Academy Modules
    Preparing search index...

    Function destroy

    • Removes a GameObject

      Note that this won't remove the GameObject immediately, the actual removal will happen at the end of the current main cycle loop.

      For more information, see https://docs.unity3d.com/ScriptReference/Object.Destroy.html

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

        The identifier for the GameObject that you want to destroy.

      Returns void