Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Compile error vuforia core samples

Discussion in 'Vuforia' started by daisyducke, Jul 7, 2018.

  1. daisyducke

    daisyducke

    Joined:
    Jun 6, 2018
    Posts:
    7
    Assets/Common/Scripts/TrackableSettings.cs(22,12): error CS0246: The type or namespace name `FusionProviderType' could not be found. Are you missing an assembly reference?
    This is what my help says about my versions:
    Unity 2018.1.4f1
    Vuforia release notes SDK v7.2.20
    I have everything checked in the download assistant except LINUX Build and MAC Mono so vuforia AR is checked.
    In Build/settings/player setting, I have checked all and still get the same error.
    Thank you
     
    a_kindofmonster likes this.
  2. ablanton

    ablanton

    Joined:
    Dec 13, 2014
    Posts:
    3
    I was getting the same error then updated to unity 2018.1.6f1 and downloaded the Vuforia updater on the developer page https://developer.vuforia.com/downloads/sdk and now appears to be working. hope this helps!
     
  3. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Can you confirm which version of Vuforia you have in the Vuforia Configuration file?
     
  4. daisyducke

    daisyducke

    Joined:
    Jun 6, 2018
    Posts:
    7
    How do you locate the Vuforia Configuration File?
    Here is the next problem:
    Did my updates and am at Unity 2018.1.7f1 and vuforia 7.2.20 (release notes) and got rid of the compile errors but there is nothing in the SampleScene for AR - just a camera and directional lighting. Here are my console messages:
    Initializing Vuforia
    UnityEngine.Debug:Log(Object)
    Vuforia.VuforiaRuntime:InitVuforia()
    Vuforia.VuforiaRuntime:VuforiaInitialization()
    I am PC,MAC, & Linux version with AR support added in the player settings.
    I am working on a ground plane game - do I have to add the game objects?

    Thank you for your help.
     
  5. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    The Vuforia Configuration is attached to the ARCamera. Which SampleScene are you referring to? What is it called and where is it located in the project? Are you using one of the sample projects from the asset store?
     
  6. daisyducke

    daisyducke

    Joined:
    Jun 6, 2018
    Posts:
    7
    I used the Vuforia Core Samples from the Asset store. It came with only a Main Camera and Directional Lighting in the one scene (SampleScene). To answer your question, I deleted the main camera and added an ARCamera from game objects. The Vuforia Configuration File says 7.2.20 (same as help/release notes and also can be seen under "Assets/Resources" in project). Now when I hit play I see myself and get the following information on the console:
    Vuforia initialization successful
    UnityEngine.Debug:Log(Object)
    Vuforia.VuforiaRuntime:HasInitializationCompleted()
    Vuforia.VuforiaARController:UpdateState(Boolean, Boolean)
    Vuforia.DigitalEyewearARController:Update()
    System.Delegate:DynamicInvoke(Object[])
    Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
    Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)
    Vuforia.VuforiaBehaviour:Update()

    Looks like I need to add a ground plane and a capsule and a plane finder per this link:
    https://library.vuforia.com/articles/Solution/ground-plane-guide.html
    I tried this project link but I haven't been able to test it on my iPhone because I don't know what to move onto the iOS iPhone (newbie!) from the iOS build. I tried printing the recommended target but couldn't see the capsule (hard to hold my Windows webcam over the printed target. Any suggestions are helpful.
    Thank you for your help.
     
  7. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    There are pre-setup scenes available in the Assets/SampleResources/Scenes directory in the Core Samples project. Could you look at those scenes and experiment with running them? The SampeScene you are referring to is a default scene that Unity sets up in any new project.
     
  8. daisyducke

    daisyducke

    Joined:
    Jun 6, 2018
    Posts:
    7
    Ah, I added the Ground Plane scene (additive command) and unloaded the sample scene which seems to work but I need to spend a lot more time understanding what is happening before I move on (newbie). Thank you so much for your invaluable help!
     
    Vuforia-Strasza likes this.
  9. arifhasnatcste

    arifhasnatcste

    Joined:
    Jul 8, 2018
    Posts:
    1
    Solution : For Unity 2018.1.6f I have updated vuforia 7.1.1 to 7.2.20 and it solved :)
     
    meedabit likes this.
  10. picaman

    picaman

    Joined:
    Jan 14, 2016
    Posts:
    1
    Unity 2018.2.0f2 not work yet. Vuforia 7.2.20 /// Assets/Common/TrackableSettings.cs(22,12): error CS0246: The type or namespace name `FusionProviderType' could not be found. Are you missing an assembly reference?
     
    Last edited: Jul 16, 2018
  11. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    158
  12. xushilin2016

    xushilin2016

    Joined:
    Jul 16, 2018
    Posts:
    2
    the same as you, have you solved this problem?
     
  13. xushilin2016

    xushilin2016

    Joined:
    Jul 16, 2018
    Posts:
    2
    i ve just solved it , updated vuforia to 7.2.20 by :HELP - VUFORIA - CHECK FOR UPDATES, YOU WILL SEE THE FUSION FUNCTION IS INCLUDED IN THIS NEW VERSION
    VUFORIA UPDATE CHECK.png
     
  14. Jayno

    Jayno

    Joined:
    Feb 20, 2013
    Posts:
    5
    Thanks, everyone, for addressing the problem and providing the solution!!
     
  15. quadratron

    quadratron

    Joined:
    Jun 3, 2015
    Posts:
    20
    I updated to the latest Vuforia and now I have 77 new namespace errors. :(

    Sadly, I've been wrangling with this issue most of the day, going from one fix to another where I think I've got things fixed only to have some new issue pop up.
     
  16. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    158
    Hello @quadratron,

    When there's a "ghost in the machine", I'll usually try deleting the Library folder in your Unity project. As explained to me, this forces Unity to rebuild everything and does help to resolve some unusual issues.

    Thanks,
    Vuforia Engine Support
     
  17. zenasprime

    zenasprime

    Joined:
    Mar 31, 2010
    Posts:
    34
    @meedabit I tried giving that a try but it did not resolve the problem.

    I'm running 2018.2.0f2 and I've run the Vuforia updater but the version that's downloaded is named "...2018.1" so I'm not sure I'm getting the latest patch.

    the offending script is currently TrackableSettings.cs
     
  18. zenasprime

    zenasprime

    Joined:
    Mar 31, 2010
    Posts:
    34
    I just tried installing the vuforia patch again and with the result being 77 errors:

    The type or namespace name `Vuforia' could not be found...

    is there a unity version that is confirmed to work with the latest version of Vuforia? I'm about to give up on getting it working with 2018.2.0f2.
     
  19. zenasprime

    zenasprime

    Joined:
    Mar 31, 2010
    Posts:
    34
    Updated Unity to 2018.2.3f1 and it seems to be working again.
     
    Vuforia-Strasza likes this.
  20. mathiasmarbotic

    mathiasmarbotic

    Joined:
    Mar 19, 2015
    Posts:
    1
    Hello everyone.

    I had the same issue with Unity 2018.2.0f2. I updated to Unity2.5f1and it works well
     
    Vuforia-Strasza likes this.
  21. jan_bajana

    jan_bajana

    Joined:
    Sep 15, 2015
    Posts:
    13
    Same issue. Testing on Unity 2018.1 and 2018.2. I actually don't know where Unity updater installs the update but doesn't work for me.
     
  22. najehsassi94

    najehsassi94

    Joined:
    Dec 2, 2018
    Posts:
    2
    when i execute i have this problem !!!!
    assets/SamplesResources/SceneAssets/CloudReco/Scripts/CloudRecoEventHandler.cs(17,14): error CS0101: The namespace `global::' already contains a definition for `CloudRecoEventHandler'
    heeeeeeeeelp pleeeeeeeeeeeease!!!!
     
  23. unity_Lm8M3svgki8LHg

    unity_Lm8M3svgki8LHg

    Joined:
    Jun 19, 2018
    Posts:
    1
    I really don't know what's Happening. Two days ago my every project were extremely working perfectly fine.Now whenever i try to import Vuforia Core Samples, it gives bunched of error half of which i already solved. only -1- remaining now. I m using Unity ver: 2018.2.5 and Vuforia 7.2.23. Error is:
    Assets/SamplesResources/SceneAssets/ImageTargets/Scripts/ModelSwap.cs(15,5): error CS0246: The type or namespace name `TrackableSettings' could not be found. Are you missing an assembly reference?

    Since -3- days searching Google, but No response. Please help.
    akarim.kk@gmail.com
     
  24. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    158
  25. Akeronz

    Akeronz

    Joined:
    Aug 3, 2013
    Posts:
    3
    Having the same missing namespace errors ( CS0246 and CS0234) and updating versions did not work. Also, made sure to have vuforia support checked in player settings as said elsewhere.
    Latest versions used: Unity 2018.3.6 and Vuforia 8.0.1
    Culprit Script: OpenSourceInitializer.cs
    Project works fine when played in unity editor. Target platform is iOS. Tried compiling in both win and mac machines, same errors.
    Help Please?!