I have found a very large number of similar problems, but none of the fixes are current or seem to work. I am looking to do this myself and not use an asset.
I am creating an augmented reality system in portrait mode where you use the front or rear camera. I have fixed the rotation issue with the cameras already, but the iOS rear camera is mirrored (if I move my finger in from the left it comes from the right on the camera) and the android front camera is the same, but the back is fine.
The device camera feed is placed onto a ui Image object under a canvas that has a plane mesh applied to it. I have also attempted to work with this as a plane and a Raw Image.
Now the Canvas I have is tied directly to the unity game camera and that Canvas has the image object that is casting the device camera feed. Since the plane and image objects are all one sided, if I flip it around I just get a black screen. I need to mirror the device camera feed, not the game object and I have no idea how to do that.
public GameObject CamFeedObj;
WebCamTexture webcam;
WebCamDevice[] devices;
void Start()
{
platform = Application.platform;
devices = WebCamTexture.devices;
webcam = new WebCamTexture(devices[0].name);
CamFeedObj.GetComponent<MeshRenderer>().material.mainTexture = webcam;
// Fixes rotation issue
if(platform == RuntimePlatform.IPhonePlayer){
CamFeedObj.transform.eulerAngles = new Vector3(0,-90,90);
}
webcam.Play();
}