浏览代码

Code cleanup

/main
Yuncong Zhang 6 年前
当前提交
47eb5783
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 16
      Runtime/editor/editor_window.cs

16
Runtime/editor/editor_window.cs


protected override float queryDevicePixelRatio() {
return EditorGUIUtility.pixelsPerPoint;
}
return Window.defaultAntiAliasing;
return defaultAntiAliasing;
}
protected override Vector2 queryWindowSize() {

public void OnEnable() {
this._devicePixelRatio = this.queryDevicePixelRatio();
this._antiAliasing = this.queryAntiAliasing();
var size = this.queryWindowSize();
this._lastWindowWidth = size.x;
this._lastWindowHeight = size.y;

if (this.displayMetricsChanged()) {
this._devicePixelRatio = this.queryDevicePixelRatio();
this._antiAliasing = this.queryAntiAliasing();
var size = this.queryWindowSize();
this._lastWindowWidth = size.x;
this._lastWindowHeight = size.y;

if (regenerateLayerTree) {
this._regenerateLayerTree = true;
}
if (Application.targetFrameRate > minTargetFrameRate)
if (Application.targetFrameRate > minTargetFrameRate) {
}
}, true);
}
}, true);
}
public override void render(Scene scene) {
var layerTree = scene.takeLayerTree();

正在加载...
取消
保存