浏览代码

fix desktop player crash

/main
xingweizhu 4 年前
当前提交
4a7d4c7d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      com.unity.uiwidgets/Runtime/ui/hooks.cs

4
com.unity.uiwidgets/Runtime/ui/hooks.cs


public static class Hooks {
static bool hooked = false;
[RuntimeInitializeOnLoadMethod]
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
#endif
static unsafe void hook() {
D.assert(!hooked);

ui_._dispatchPlatformMessage,
ui_._dispatchPointerDataPacket);
}
public static void tryHook() {
if (hooked) {

正在加载...
取消
保存