浏览代码

performanceoverlay

/main
xingwei.zhu 6 年前
当前提交
901c19c7
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 8
      Runtime/editor/editor_window.cs
  2. 3
      Samples/UIWidgetsGallery/gallery/app.cs

8
Runtime/editor/editor_window.cs


this._windowAdapter.OnGUI(Event.current);
}
float? lastUpdateTime;
if (this.lastUpdateTime != null) {
float deltaTime = (float)EditorApplication.timeSinceStartup - this.lastUpdateTime.Value;
PerformanceUtils.instance.updateDeltaTime(deltaTime);
}
this.lastUpdateTime = (float) EditorApplication.timeSinceStartup;
this._windowAdapter.Update();
}

3
Samples/UIWidgetsGallery/gallery/app.cs


theme: GalleryTheme.kLightGalleryTheme,
textScaleFactor: GalleryTextScaleValue.kAllGalleryTextScaleValues[0],
timeDilation: SchedulerBinding.instance.timeDilation,
platform: Application.platform
platform: Application.platform,
showPerformanceOverlay: this.widget.enablePerformanceOverlay
);
}

正在加载...
取消
保存