• Parameters

    • obj: IComponent | IGameObject

      The object or component to be destroyed

    • con: INetworkConnection

      The network connection to send the destroy event to

    • recursive: boolean = true

      If true, all children will be destroyed as well. Default is true

    • Optional opts: SyncDestroyOptions

    Returns void

Generated using TypeDoc