Topic locked

Working with Cloud Recognition

December 16, 2021 - 11:24am #1

Hi,

I used this code, but the cube is not displayed.

public void OnNewSearchResult(CloudRecoBehaviour.CloudRecoSearchResult cloudRecoSearchResult)
	    {
	        try
	        {
	            //ObjectRecoBehaviour.CloudRecoSearchResult cloudRecoSearch = cloudRecoSearchResult;
	            mTargetMetadata = cloudRecoSearchResult.MetaData;
	            if (ImageTargetTemplate)
	            {
	                //Debug.Log(cloudRecoSearch.TargetName);
	                mCloudRecoBehaviour.EnableTracking(cloudRecoSearchResult, ImageTargetTemplate.gameObject);
	            }
	            mCloudRecoBehaviour.enabled = false;
	        }
	        catch (Exception ex)
	        {
	            Debug.LogError(ex.StackTrace);
	        }
	    }

 

And this is my scene:

 

Thanks for the tips.

AttachmentSize
Package icon SimpleCloudRecoEventHandler.zip838 bytes

Working with Cloud Recognition

January 10, 2022 - 7:56am #4

hi

i was looking for answer alot but eventually it’s here hhhhh

many thanks – Thank you very much!

Working with Cloud Recognition

December 16, 2021 - 12:37pm #3

But the source of my code is this link!

 

I installed "Vuforia Books Sample" but got an error.

Assets\Common\Scripts\CloudRecoEventHandler.cs(80,31): error CS0246: The type or namespace name 'TargetFinder' could not be found (are you missing a using directive or an assembly reference?)

Assets\Common\Scripts\CloudRecoEventHandler.cs(21,5): error CS0246: The type or namespace name 'ObjectTracker' could not be found (are you missing a using directive or an assembly reference?)

If in version 10.3 Vuforia, TargetFinder is obsolete.

Working with Cloud Recognition

December 16, 2021 - 11:44am #2

Hello,

How does your code compare with our free Unity Cloud Reco sample?

https://assetstore.unity.com/packages/templates/packs/vuforia-books-sample-102254

Kind regards,

Dave Downing

Technical Support

Topic locked