WebCamDevice + FlashLight

I’m having trouble trying to use WebCam and the Flash Light from Android / iOS … can someone help me?

1 Like

Probably should mention what trouble you are having.

the Camera works normally … but how do I turn on Flash?

This will most likely not be exposed in Unity, as it is a very niche case. If it is, it will likely live in the UnityEngine.Android namespace.

Instead, look on Android development pages to figure out how to do it in native Android, then you can hopefully port those calls over to Unity using the UnityEngine.Android.AndroidJavaClass() API, if it supports what you need to do.

1 Like

any solution?

Please do not necro-post.

Start your own post.

Here’s how to communicate technical issues:

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
  • links to documentation you used to cross-check your work (CRITICAL!!!)

Do not TALK about code without posting it. Do NOT retype code. Copy/paste and post code properly. ONLY post the relevant code, and then refer to it in your discussion.

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379