Class: InCamera

Phaser.Component. InCamera

new InCamera()

The InCamera component checks if the Game Object intersects with the Game Camera.

Source:
src/gameobjects/components/InCamera.js line 12

Members

<readonly> inCamera : boolean

Checks if this Game Objects bounds intersects with the Game Cameras bounds.

It will be true if they intersect, or false if the Game Object is fully outside of the Cameras bounds.

An object outside the bounds can be considered for camera culling if it has the AutoCull component.

Type:
  • boolean
Source:
src/gameobjects/components/InCamera.js line 26

phaser-ce@2.20.1 is on GitHub and NPM

Documentation generated by JSDoc 3.6.11 on 2024-10-05 using Tomorrow.