Skip to content

Commit

Permalink
Touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed Jun 18, 2024
1 parent 36f55e5 commit b7b7f9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/en/manuals/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -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():

Expand Down

0 comments on commit b7b7f9f

Please sign in to comment.