1. Vote on the next Unite Training Day project genre here
  2. VS Code Unity debugger extension preview

Android - Turn on front camera

Discussion in 'Scripting' started by mortenmoulder, Oct 27, 2013.

  1. mortenmoulder


    Jul 11, 2013
    I am trying to turn on the front camera, as well as changing an object to the front camera. I am messing around with augmented reality, and I am using Vuforia.

    I am trying to turn a mirror into the front camera, so it will change the mirror rectangle into the front camera.

    Here is the current code from the CameraDevice.cs: http://puu.sh/51hfw.txt

    CAMERA_FRONT in the CameraDirection enumeration will turn on the front camera, but I have no idea how to change the object into the front camera. Any help?