You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
535 B
19 lines
535 B
1 year ago
|
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);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|