* Add a camera effect to this camera. * @param effect - the camera effect to add * @returns the added effect * @example * camera.addCameraEffect(new ShakeEffect(camera, { intensity: 10, duration: 500 }));
(effect: T)
| 787 | * camera.addCameraEffect(new ShakeEffect(camera, { intensity: 10, duration: 500 })); |
| 788 | */ |
| 789 | addCameraEffect<T extends CameraEffect>(effect: T): T { |
| 790 | this.cameraEffects.push(effect); |
| 791 | return effect; |
| 792 | } |
| 793 | |
| 794 | /** |
| 795 | * Get the first camera effect matching the given class. |
no test coverage detected