From b7b7f9f1c1b80257cedbab6248d074455683ca01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jhonny=20Go=CC=88ransson?= Date: Tue, 18 Jun 2024 11:37:00 +0200 Subject: [PATCH] Touch-ups --- docs/en/manuals/camera.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/en/manuals/camera.md b/docs/en/manuals/camera.md index 92b31686..865a65c9 100644 --- a/docs/en/manuals/camera.md +++ b/docs/en/manuals/camera.md @@ -51,7 +51,12 @@ Orthographic Zoom ## Using the camera -All cameras are automatically enabled and updated during a frame, and the lua `camera` module is available in all script contexts. Since Defold 1.8.1 there is no longer a need to explicitly enable a camera via send a `acquire_camera_focus` message to the camera component. The messages are still available, but it is recommended to set the "enabled" and/or "disabled" properties via `go.set` like any other component. +All cameras are automatically enabled and updated during a frame, and the lua `camera` module is available in all script contexts. Since Defold 1.8.1 there is no longer a need to explicitly enable a camera via sending an `acquire_camera_focus` message to the camera component. The messages are still available, but it is recommended to set the "enabled" and/or "disabled" properties via `go.set`: + +```lua +go.set("#camera", "disable") +go.set("#camera", "enable") +``` To list all currently available cameras, you can use camera.get_cameras():