Phaser API Documentation

  Version: 
destroy()

Description:

Destroys this Camera instance. You rarely need to call this directly.

Called by the Camera Manager. If you wish to destroy a Camera please use CameraManager.remove as cameras are stored in a pool, ready for recycling later, and calling this directly will prevent that.

Since: 3.0.0
Source: src/cameras/2d/Camera.js (Line 782)