Search Unity

Vuforia CameraDevice.Instance.SetFlashTorchMode(true); return FAILED

Discussion in 'Scripting' started by Edger_W, Apr 9, 2020.

  1. Edger_W

    Edger_W

    Joined:
    Nov 5, 2018
    Posts:
    3
    I use device is SamSung S20+ , Andorid ver is 10.
    This device is not work this code "CameraDevice.Instance.SetFlashTorchMode(true);" , and return "Toggle flash ON FAILED" to me.
    I try add "VuforiaRuntimeUtilities.SetAllowedFusionProviders(FusionProviderType.VUFORIA_VISION_ONLY);" , Before initialization voforia ,but not work too.

    but,other device RedmiNote5 , Andorid ver is 9.
    This device can work code.

    This problem,How can i do?
    Much appreciate, and Thank You in advance!
     
  2. AlecRe

    AlecRe

    Joined:
    Nov 24, 2015
    Posts:
    1
    hi ,I have the same problem. have you solved it