Skip to content

Commit f5d8490

Browse files
authored
Dynamically set video rotation (#95)
1 parent 2482d17 commit f5d8490

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtime/Scripts/WebCameraSource.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public override int GetHeight()
2828

2929
protected override VideoRotation GetVideoRotation()
3030
{
31+
switch (Texture.videoRotationAngle)
32+
{
33+
case 90: return VideoRotation._90;
34+
case 180: return VideoRotation._0;
35+
}
3136
return VideoRotation._180;
3237
}
3338

0 commit comments

Comments
 (0)