ソースを参照

Update camera.md

Björn Ritzl 1 年間 前
コミット
db22edc8db
1 ファイル変更3 行追加3 行削除
  1. 3 3
      docs/en/manuals/camera.md

+ 3 - 3
docs/en/manuals/camera.md

@@ -51,11 +51,11 @@ 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 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`:
+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 old acquire and release messages are still available, but it is recommended to instead use the "enable" and "disable" messages like for any other component that you wish to enable or disable:
 
 ```lua
-go.set("#camera", "disable")
-go.set("#camera", "enable")
+msg.post("#camera", "disable")
+msg.post("#camera", "enable")
 ```
 
 To list all currently available cameras, you can use camera.get_cameras():