Defold camera extension API documentation

This extension provides a unified, simple to use interface to capture images using the camera on macOS, iOS and Android.

Installation

To use this library in your Defold project, add the following URL to your game.project dependencies:

https://github.com/defold/extension-camera/archive/master.zip

We recommend using a link to a zip file of a specific release.

Example

Refer to the example project.

FAQ

How do I reset macOS camera permission?

To test macOS camera permission popup multiple times you can reset the permission from the terminal:

tccutil reset Camera

Source code

The source code is available on GitHub

API reference

API Reference - camera