Log in or register to post comments

ICloudRecoEventHandler missing

March 27, 2019 - 1:09pm #1

Hello, i can't use ICloudRecoEventHandler class.
This problem occurred after the last update.
Please help me

ICloudRecoEventHandler missing

July 14, 2019 - 10:25am #10

Since the new update was release and I find out lost of people have a problem of ICloudRecoEvenHandler.

Which I also find out instead of keep the interface ICloudRecoEvenHandler, Vuforia decide to change it into IObjectRecoEvenHandler in which you can find the implement are exactly the same. 

Here is the example that I tested on:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using Vuforia;

public class SimpleCloudHandler : MonoBehaviour, IObjectRecoEventHandler {

    public ImageTargetBehaviour ImageTargetTemplate;

    private CloudRecoBehaviour mCloudRecoBehaviour;

    private bool mIsScanning = false;

    private string mTargetMetadata = "";

   

    public void OnInitialized(TargetFinder targetFinder)

    {

        Debug.Log("Cloud Reco initialized");

    }

    public void OnInitError(TargetFinder.InitState initError)

    {

        Debug.Log("Cloud Reco init error " + initError.ToString());

    }

    public void OnUpdateError(TargetFinder.UpdateState updateError)

    {

        Debug.Log("Cloud Reco update error " + updateError.ToString());

    }

    public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult)

    {

        TargetFinder.CloudRecoSearchResult cloudRecoSearchResult =

     (TargetFinder.CloudRecoSearchResult)targetSearchResult;

        // do something with the target metadata

        mTargetMetadata = cloudRecoSearchResult.MetaData;

        // stop the target finder (i.e. stop scanning the cloud)

        mCloudRecoBehaviour.CloudRecoEnabled = false;

    }



    public void OnStateChanged(bool scanning)

    {

        mIsScanning = scanning;

        if (scanning)

        {

            // clear all known trackables

            ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>();

            tracker.GetTargetFinder<TargetFinder>().ClearTrackables(false);

        }

    }

    // Start is called before the first frame update

    void Start()

    {

        CloudRecoBehaviour mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>();

        if (mCloudRecoBehaviour)

        {

            mCloudRecoBehaviour.RegisterEventHandler(this);

        }

    }

    // Update is called once per frame

    void Update()

    {

       

    }

}

ICloudRecoEventHandler missing

July 14, 2019 - 10:21am #9

You can try this way:

tracker.GetTargetFinder<TargetFinder>().ClearTrackables(false);

ICloudRecoEventHandler missing

May 31, 2019 - 4:46am #8

Ive updated Unity to 2019.1.4f1 and it came with Vuforia 8.1.7, when I tried to import "Vuforia Core Samples" Unity crashed :D Its a disaster.

So updaed Vuforia to 8.1.11, but the samples still crash on import. 

Is it even possible to make the f*cking samples to work?

ICloudRecoEventHandler missing

May 30, 2019 - 2:28am #7

So what? Can I make it to work or not? Im using Unity 2018.3.4f1 and Vuforia 8.1.7.

When Im trying to run "Vuforia Core Samples" downloaded from AssetStore I get error: 

Assets/Common/Scripts/CloudErrorHandler.cs(10,49): error CS0246: The type or namespace name `ICloudRecoEventHandler' could not be found. Are you missing an assembly reference?

Come on, it's a basic thing! It should work. How am I supposed to start work with Vuforia when samples dont work.

 

UPDATE: Ive updated Vuforia to 8.1.10 and it still doesnt work.

UPDATE 2: Ive updated Unity to 2018.4.1f1, Vuforia to 8.1.11 and it still doesnt work. Its a comedy, man.

ICloudRecoEventHandler missing

May 19, 2019 - 4:23am #6

Hi there!

 

I was just trying to implement the Cloud reco sample found here:

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Implement-Cloud-Reco.html#unity

 

and encountered the same problem, here you find the solution:

https://developer.vuforia.com/forum/vuforia-api/icloudrecoeventhandler-deprecated

 

But then another error appears:

in OnStateChanged function:

tracker.TargetFinder.ClearTrackables(false);

 

TargetFinder doesn't exist anymore..

I guess this should do the work:

tracker.GetTargetFinder<TargetFinder>().ClearTrackables(false);

 

but haven't yet tested..

 

would be nice a docu update..

ICloudRecoEventHandler missing

May 14, 2019 - 9:57pm #5

Hello, i have occurred same problem here, ICloudRecoEventHandler is missing

can someone can help me?

ICloudRecoEventHandler missing

April 29, 2019 - 11:19am #4

Hello,

This topic has been covered numerous times on these forums, and Unity's Vuforia forums.

The error you're observing is due to a mismatch in the Engine SDK version (using one version of the Vuforia APIs), and the downloaded Engine samples (using another version of the Vuforia APIs). Despite going to the Unity Asset Store and downloading the latest version of the samples, some users still get the wrong version. This has been traced back to how Unity versions artifacts posted to the Asset Store. As Unity is moving towards Package Manager, they no longer invest in their current tools so the issue persists.

The documentation discrepancy comment is a fair one as we continue to strive to improve here. However, the code in our samples provide the best, most recent (and tested) documentation for best practices in using Vuforia Engine features. If you need help with access to these, please DM me.

Thanks,

Vuforia Engine Support

 

ICloudRecoEventHandler missing

April 28, 2019 - 4:04am #3

Seriously? no answer within a month??

Same problem here, happened after updating vuforia to the last version 8.1.1.

The guide on their official website seems to be not-relevant anymore..

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Implement-Cloud-Reco.html#unity



i'll try to find solution somewhere else.. if i'll find no solution, best way then is to use VOID ar instead of vuforia.

ICloudRecoEventHandler missing

April 19, 2019 - 3:14am #2

Hello, we need help on this.

Log in or register to post comments