Skip to content

Commit 4449ffe

Browse files
committed
include aspect ratio
1 parent b0cad1d commit 4449ffe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Story Generator/Scripts/CameraControl.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ public static IList<CameraInfo> CreateCameraData(List<Camera> cameras, IList<int
533533
CameraInfo data = new CameraInfo() {
534534
index = i,
535535
name = camera.name,
536+
aspect = camera.aspect,
536537
projection_matrix = projArray,
537538
world_to_camera_matrix = cameraArray
538539
};
@@ -577,6 +578,7 @@ public class CameraInfo
577578
{
578579
public int index;
579580
public string name;
581+
public float aspect;
580582
public float[] projection_matrix;
581583
public float[] world_to_camera_matrix;
582584
}

0 commit comments

Comments
 (0)