Unity 的 CrossPlatformValidator 到底在哪里?

Where the heck is Unity's CrossPlatformValidator?

我正在尝试使用 Unity 的优秀新功能 CrossPlatformValidator

(如所见...
http://docs.unity3d.com/Manual/UnityIAPValidatingReceipts.html
https://docs.google.com/document/d/1dJzeoGPeUIUetvFCulsvRz1TwRNOcJzwTDVf23gk8Rg)

但是找不到!我自然是...

using UnityEngine;
using UnityEngine.Purchasing;

我还尝试了不同的剥离和 .Net 级别。没有。

有人知道这件事吗?

The type or namespace name `CrossPlatformValidator' could not be found. Are you missing a using directive or an assembly reference?

像这样的东西通常 UnityEngine.Experimental 找到 但我看的时候没有,所以我猜它 没有 [=51] =] 一项新功能。

1. 你可以找到Windows -> 服务Window显示的上签名,通常在右边。

2. 创建 项目 ID Window。

3.点击应用内购买。它被勾选为OFF,点击它然后点击Enable

注意:您必须登录才能启用它并且您必须启用之前你可以使用它来自脚本


最后,完全未记录的命名空间是:

使用 UnityEngine.Purchasing.Security;

请注意,例如,如果忘记了,可以在生成的“缠结”文件中看到这一点。 :/

Mono Dev 经常可以帮你找东西。

右键单击未解决的 class -> 解决

Mono Dev.解析函数截图: