* Remove a specific camera effect instance. * @param effect - the effect to remove * @example * const fade = camera.getCameraEffect(FadeEffect); * if (fade) camera.removeCameraEffect(fade);
(effect: CameraEffect)
| 814 | * if (fade) camera.removeCameraEffect(fade); |
| 815 | */ |
| 816 | removeCameraEffect(effect: CameraEffect): void { |
| 817 | const idx = this.cameraEffects.indexOf(effect); |
| 818 | if (idx !== -1) { |
| 819 | effect.destroy(); |
| 820 | this.cameraEffects.splice(idx, 1); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * set the camera position around the specified object |
no test coverage detected