Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

WebCamDevice + FlashLight

Discussion in 'Scripting' started by isplayer, Sep 14, 2020.

Thread Status:
Not open for further replies.
  1. isplayer

    isplayer

    Joined:
    Dec 6, 2016
    Posts:
    5
    I'm having trouble trying to use WebCam and the Flash Light from Android / iOS ... can someone help me?
     
    weplayfx likes this.
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Probably should mention what trouble you are having.
     
  3. isplayer

    isplayer

    Joined:
    Dec 6, 2016
    Posts:
    5
    the Camera works normally ... but how do I turn on Flash?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    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.
     
    Joe-Censored likes this.
  5. weplayfx

    weplayfx

    Joined:
    Jun 7, 2022
    Posts:
    1
    any solution?
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    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://forum.unity.com/threads/using-code-tags-properly.143875/
     
Thread Status:
Not open for further replies.