浏览代码

fix binding.cs

没有完全改动,可能需要帮忙看看怎么改
/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
daf3a9a0
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 12
      com.unity.uiwidgets/Runtime/widgets/binding.cs

12
com.unity.uiwidgets/Runtime/widgets/binding.cs


using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.scheduler2;
using Unity.UIWidgets.ui;
using UnityEngine;

}
}
bool _readyToProduceFrames = false;
public RenderObjectToWidgetElement<RenderBox> renderViewElement {
get { return _renderViewElement; }
}

}
public void attachRootWidget(Widget rootWidget) {
_readyToProduceFrames = true;
_renderViewElement = new RenderObjectToWidgetAdapter<RenderBox>(
container: renderView,
debugShortDescription: "[root]",

bool isRootWidgetAttached {
get { return _renderViewElement != null; }
}
}
public class RenderObjectToWidgetAdapter<T> : RenderObjectWidget where T : RenderObject {

element.assignOwner(owner);
});
owner.buildScope(element, () => { element.mount(null, null); });
SchedulerBinding.instance.ensureVisualUpdate();
}
else {
element._newWidget = this;

internal override void forgetChild(Element child) {
D.assert(child == _child);
_child = null;
base.forgetChild(child);
}
public override void mount(Element parent, object newSlot) {

if (_newWidget != null) {
Widget newWidget = _newWidget;
_newWidget = null;
update(newWidget);
update((RenderObjectToWidgetAdapter<T>)newWidget);
}
base.performRebuild();

正在加载...
取消
保存