This repository has been archived on 2025-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
Net.Like.Xue.Tokyo/Assets/Plugins/Fullscreen/Editor/GameViewLowResolutionAspect...

19 lines
535 B
C#
Raw Normal View History

2024-11-03 16:42:23 +08:00
using UnityEditor;
namespace FullscreenEditor {
[InitializeOnLoad]
// Issues #98 #96 #97 and #99
public class GameViewLowResolutionAspectRatios {
static GameViewLowResolutionAspectRatios() {
FullscreenCallbacks.afterFullscreenOpen += fs => {
var window = fs.ActualViewPyramid.Window;
if (window && window.HasProperty("lowResolutionForAspectRatios"))
window.SetPropertyValue("lowResolutionForAspectRatios", false);
};
}
}
}