gpt4 book ai didi

c# - 用于 Unity3D 和 Flash 的 JSON 解析器

转载 作者:行者123 更新时间:2023-11-30 17:08:58 25 4
gpt4 key购买 nike

目前我正在 Unity3D (C#) 中实现一个应用程序,该应用程序将导出到 Flash 和 WebPlayer 版本。应用程序使用 JSON 与服务器通信。我的问题是:是否有适用于 Unity WebPlayer 和 Flash 的 JSON 解析器?我试过MiniJSON Flash Version已经。在花费数小时使其完全导出后,它在 UnityWebPlayer 中解码 JSON 但在 Flash 中返回 NULL。在 Unity WebPlayer 和 Flash 中还有其他方法可以解析 JSON 字符串吗?或者是否有另一个 JSON-Parser 也适用于 Flash?我确实搜索了很多,但人们要么提供了 MiniJSON 的链接,要么建议等待 Unity3D 4.0 版。我什至尝试了 unity3D 的代理类功能,但无法在 Flash 端运行它。也许有人可以提供一个例子?

非常感谢

最佳答案

我使用 LitJSON for Unity不久前我为测试目的构建网络播放器版本时没有问题。我没有使用 Flash 播放器的经验,但根据此演示文稿 Unity and Flash, the best of both worlds! - Unite presentation slides第 18 页及以后它应该完成这项工作。

关于c# - 用于 Unity3D 和 Flash 的 JSON 解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13379830/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com