浏览代码

change navigator settings arguments to json use JsonUtility.ToJson().

/siyaoH-1.17-PlatformMessage
wangshuang 4 年前
当前提交
202d43f3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.uiwidgets/Runtime/widgets/navigator.cs

4
com.unity.uiwidgets/Runtime/widgets/navigator.cs


using Unity.UIWidgets.rendering;
using Unity.UIWidgets.scheduler;
using Unity.UIWidgets.services;
using UnityEngine;
using SchedulerBinding = Unity.UIWidgets.scheduler.SchedulerBinding;
using SchedulerPhase = Unity.UIWidgets.scheduler.SchedulerPhase;

{"name", settings.name}
};
if (settings.arguments != null) {
settingsJsonable["arguments"] = JSONMessageCodec.instance.toJson(
settings.arguments);
settingsJsonable["arguments"] = JsonUtility.ToJson(settings.arguments);
}
routeJsonable["settings"] = settingsJsonable;

正在加载...
取消
保存