# Non-Working Example from the Camera Component Manual

**URL:** <https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345>\
**Category:** Bugs\
**Created:** [June 26, 2024, 8:01am UTC](https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345 "2024-06-26T08:01:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HIKOkyoujurou](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/hikokyoujurou/32/23317_2.png) [@HIKOkyoujurou](https://forum.defold.com/u/HIKOkyoujurou)\
**Post date:** [June 26, 2024, 8:01am UTC](https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345/1 "2024-06-26T08:01:17Z")

</div>

> **[Camera component manual](https://defold.com/manuals/camera/#:~:text=Since%20Defold%201.8.1%20there%20is%20no%20longer%20a%20need%20to%20explicitly%20enable%20a%20camera%20via%20sending%20an%20acquire_camera_focus%20message%20to%20the%20camera%20component.%20The%20messages%20are%20still%20available%2C%20but%20it%20is%20recommended%20to%20set%20the%20%E2%80%9Cenabled%E2%80%9D%20and/or%20%E2%80%9Cdisabled%E2%80%9D%20properties%20via%20go.set%3A)**
>
> This manual describes the functionality of the Defold camera component.

I followed this manual to use camera, write `go.set("#camera", "enable")` instead of `acquire_camera_focus`.  
However, I got this error.

> ERROR:GAMEOBJECT: Properties can not be of type ‘no value’.  
> ERROR:SCRIPT: main/game/camera/script\_camera.script:4: the property ‘enable’ of ‘#camera’ must be a number

Using `msg.post("#camera", "enable")` works.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 26, 2024, 8:29am UTC](https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345/2 "2024-06-26T08:29:08Z")

</div>

> [@HIKOkyoujurou](#):
>
> I followed this manual to use camera, write `go.set("#camera", "enable")`

It should probably be:

```lua
go.set("#camera", "enable", true)

```

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 26, 2024, 8:31am UTC](https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345/3 "2024-06-26T08:31:24Z")

</div>

No scratch that. It should be messages like you figured out yourself:

> <https://github.com/defold/defold/blob/dev/engine/gamesys/src/gamesys/components/comp_camera.cpp#L288-L297>

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 26, 2024, 8:35am UTC](https://forum.defold.com/t/non-working-example-from-the-camera-component-manual/77345/4 "2024-06-26T08:35:48Z")

</div>

I’ve updated the documentation: [Update camera.md · defold/doc@db22edc · GitHub](https://github.com/defold/doc/commit/db22edc8dbdbfc2c72a8dbe262c8a958c43f27cb)
