从另一个VR Oculus应用程序启动VR Oculus应用程序

时间:2018-05-01 22:10:18

标签: c# unity3d deep-linking virtual-reality oculus

我在Unity / C#中为VR / Oculus开发了2个应用程序

我想从另一个发起 (他们两个都不在正式的Oculus商店里)。

我找到了这个指南:Integrate App Deeplinking

  1. 这是唯一的方法吗?
  2. 我在项目中添加了下一个代码段:

    var options = new ApplicationOptions();
    options.SetDeeplinkMessage("abc");
    Platform.Application.LaunchOtherApp(<app_id>, options);
    

    但IDE无法识别ApplicationOptionsPlatform 我错过了什么?

  3. 我的意思是app_id是什么,我应该从哪里得到它?

1 个答案:

答案 0 :(得分:1)

您应该在 const subCategories = categoriesWithSub.filter(category => { return category.id === departments.catId; }); 部分中使用名称空间,或尝试执行以下操作:

using

如果这不起作用,请检查您是否具有Oculus的var options = new Oculus.Platform.ApplicationOptions(); options.SetDeeplinkMessage("abc"); Oculus.Platform.Application.LaunchOtherApp(<app_id>, options); 软件包。

此外,您还可以从应用程序的Oculus信息中心获取Unity Integration