Skip to content

Commit

Permalink
fix: switch front/back cameras (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Dec 10, 2023
1 parent 2d2863e commit 6a74693
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ private IEnumerator Initialize()
yield break;
}

if (webCamDevice != null)
{
yield break;
}

availableSources = WebCamTexture.devices;

if (availableSources != null && availableSources.Length > 0)
Expand Down

0 comments on commit 6a74693

Please sign in to comment.