Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android - Turn on front camera

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

  1. mortenmoulder

    mortenmoulder

    Joined:
    Jul 11, 2013
    Posts:
    1
    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?

    Thanks!