コード例 #1
0
    void LaunchUnrealDeeplinkSample()
    {
        Debug.Log(string.Format("LaunchOtherApp({0})", UNREAL_COMPANION_APP_ID));
        var options = new Oculus.Platform.ApplicationOptions();

        options.SetDeeplinkMessage(deeplinkMessage.GetComponentInChildren <Text>().text);
        Oculus.Platform.Application.LaunchOtherApp(UNREAL_COMPANION_APP_ID, options);
    }
コード例 #2
0
    void LaunchOtherApp()
    {
        ulong appId;

        if (ulong.TryParse(deeplinkAppId.GetComponentInChildren <Text>().text, out appId))
        {
            Debug.Log(string.Format("LaunchOtherApp({0})", appId));
            var options = new Oculus.Platform.ApplicationOptions();
            options.SetDeeplinkMessage(deeplinkMessage.GetComponentInChildren <Text>().text);
            Oculus.Platform.Application.LaunchOtherApp(appId, options);
        }
    }
コード例 #3
0
    void LaunchSelf()
    {
        // launch self, assumes android platform
        ulong appId;

        if (ulong.TryParse(Oculus.Platform.PlatformSettings.MobileAppID, out appId))
        {
            Debug.Log(string.Format("LaunchSelf({0})", appId));
            var options = new Oculus.Platform.ApplicationOptions();
            options.SetDeeplinkMessage(deeplinkMessage.GetComponentInChildren <Text>().text);
            Oculus.Platform.Application.LaunchOtherApp(appId, options);
        }
    }