diff --git a/UnityEditorPackage/Runtime/CinematicUnityExplorer.STANDALONE.Mono.dll b/UnityEditorPackage/Runtime/CinematicUnityExplorer.STANDALONE.Mono.dll index 3d365d8..d05dadd 100644 Binary files a/UnityEditorPackage/Runtime/CinematicUnityExplorer.STANDALONE.Mono.dll and b/UnityEditorPackage/Runtime/CinematicUnityExplorer.STANDALONE.Mono.dll differ diff --git a/src/UI/Panels/FreeCamPanel.cs b/src/UI/Panels/FreeCamPanel.cs index d399335..4991a5a 100644 --- a/src/UI/Panels/FreeCamPanel.cs +++ b/src/UI/Panels/FreeCamPanel.cs @@ -1236,6 +1236,7 @@ namespace UnityExplorer.UI.Panels private Quaternion cachedRotation; private CamPaths cachedCamPathsPanel; private bool? hasHDRPComponent = null; + private float cachedAspectRatio = -1f; internal void Update() { @@ -1283,6 +1284,11 @@ namespace UnityExplorer.UI.Panels FreeCamPanel.connector?.ExecuteCameraCommand(FreeCamPanel.GetFreecam()); FreeCamPanel.UpdatePositionInput(); + if (FreeCamPanel.cameraMatrixOverrider != null && Mathf.Abs(FreeCamPanel.ourCamera.aspect - cachedAspectRatio) > 0.001f) + { + FreeCamPanel.cameraMatrixOverrider.ResetAspect(); + cachedAspectRatio = FreeCamPanel.ourCamera.aspect; + } } }