public WidgetsBinding() { this.buildOwner.onBuildScheduled = this._handleBuildScheduled; Window.instance.onLocaleChanged += this.handleLocaleChanged; this.widgetInspectorService = new WidgetInspectorService(this); this.addPersistentFrameCallback((duration) => { MeshGenerator.tickNextFrame(); TessellationGenerator.tickNextFrame(); }); }
public WidgetsBinding(bool inEditorWindow = false) : base(inEditorWindow) { this.buildOwner.onBuildScheduled = this._handleBuildScheduled; Window.instance.onLocaleChanged += this.handleLocaleChanged; this.widgetInspectorService = new WidgetInspectorService(this); this.addPersistentFrameCallback((duration) => { TextBlobMesh.tickNextFrame(); TessellationGenerator.tickNextFrame(); uiTessellationGenerator.tickNextFrame(); uiPathCacheManager.tickNextFrame(); }); }