Log in or register to post comments

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

September 27, 2018 - 11:34am #1

OK new user here, this is what steps I have followed so far:

1. Installed Unity 2018.2.10f1

2. Enabled Vuforia in XR settings

3. Enabled VR support and put Vuforia SDK at top of list

4. Imported VR+AR asset package from Unity store

 

I get this error:

Assets/Common/Scripts/CloudRecoEventHandler.cs(82,42): error CS1061: Type `Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder' and no extension method `GetTargetFinder' of type `Vuforia.ObjectTracker' could be found. Are you missing an assembly reference?

https://imgur.com/a/kIOOvsy

What am I missing?

 

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

August 20, 2019 - 12:25am #6

Hi,

Usually creating a new project, does the trick. Please give it a try.

Thank you.

Vuforia Engine Support

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

August 19, 2019 - 3:46am #5

Hello,

Thank you for the reply.

I checked both the version of SDK and the version of samples in Assets. I had the mismatch between the versions.

Now i have updated the version of the sample to be the same as the SDK, but the error is still there and i got others.

 

All the errors have the same description: 

error CS1061: Type ... does not contain a definition for ... and no extension method .... of type ... could be found. Are you missing an assembly reference?

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

August 16, 2019 - 11:43am #4

Hello,

There is likely a mismatch between your SDK version, and the version of the samples being used. As the SDK evolves and APIs are created/changed, so do the samples to be compatible with them.

Here's how you can check the versions of both (assuming you used Vuforia samples resources):

  • SDK version: Unity Editor->Window->Vuforia Configuration
  • Samples version: Unity Editor->Project window: Assets/Vuforia/version

Can you check that?

Thanks,

Vuforia Engine Support

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

August 16, 2019 - 8:53am #3

Hi,

I have a similar error with TargetFinder.

I am using Unity 2018.3.0 with Vuforia 7.5.26

The error i get: 

Assets/Scripts/BepartCloudHandler.cs(80,63):error CS1061: Type `Vuforia.TargetFinder' does not contain a definition for `GetImageTargets' and no extension method `GetImageTargets' of type `Vuforia.TargetFinder' could be found. Are you missing an assembly reference?

 

The line of code that gives me the error:

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

IEnumerable<ImageTarget> ListTarget =  tracker.TargetFinder.GetImageTargets();



 

Any idea how can i fix it?

Thanks

`Vuforia.ObjectTracker' does not contain a definition for `GetTargetFinder'

October 2, 2018 - 2:29am #2

It's quite a fail for a sample package. Anyway, preferably you would update to the new Vuforia:

Unity Editor -> Help -> Vuforia -> Check for Updates -> Install to "C:\Program Files\Unity 2018.x.y\"

or just replace GetTargetFinder<ImageTargetFinder>() with TargetFinder

 

Log in or register to post comments