Unity 3D AppStore链接打开问题

时间:2017-04-20 14:57:30

标签: ios iphone unity3d

我在通过Unity3D中的按钮直接或通过Safari打开AppStore时遇到问题。我有以下代码,但它不起作用:Safari抱怨该地址无效。

直接在浏览器中使用时,地址似乎没问题:https://itunes.apple.com/us/developer/best-free-games-3d/id959029626

   public void OnClick()
    {
        Application.OpenURL ("https://itunes.apple.com/us/developer/best-free-games-3d/id959029626");

        Sound.instance.PlayButton();
    }

Safari invalid address error message

1 个答案:

答案 0 :(得分:0)

找到超级解决方案:

#if UNITY_IPHONE
Application.OpenURL("itms-apps://itunes.apple.com/us/developer/best-free-games-3d/id959029626");
#endif