Log in or register to post comments

Vuforia 2.0 and Unity 4 Issues

December 18, 2012 - 6:53am #1

After upgrading to Unity 4 and importing Vuforia 2.0 into one of my projects (previously using Vuforia 1.5.9) I am having issues viewing my project in Game Mode and can no longer "Build and Run" for iOS.

After importing Vuforia 2.0 I noticed that my ARCamera object now has a Web Cam component added to it by default. I tried disabling (unchecked in the inspector) the web cam but now my image target just appears white when previewing my scene in the Game viewer and I am now getting a screen position output in the console when hovering the mouse over my image target in the Gamer viewer.

When trying to "Build and Run" for iOS I get the following error:

Error building Player: SystemException: Duplicate native method found : getInitErrorCode. Please check your source carefully.

I also receive the following error in the Unity console when attempting to compile for iOS:

Assets/Qualcomm Augmented Reality/Scripts/Internal/BGRenderingBehaviour.cs(41,31): warning CS0618: `UnityEngine.GameObject.SetActiveRecursively(bool)' is obsolete: `gameObject.SetActiveRecursively() is obsolete. Use GameObject.SetActive(), which is now inherited by children.'
 

Any help would be greatly appreciated.

Thanks.

Hello negrlja.   The error

December 20, 2012 - 1:57am #5

Hello negrlja.

 

The error "`gameObject.SetActiveRecursively() is obsolete." is caused by the updaes of unity.

The behavior of Setting one or multible Objects active hase changed in Uity 4.0.

If you should take a look at the new documentar

http://docs.unity3d.com/Documentation/ScriptReference/GameObject.SetActive.html

 

The Error:

"Error building Player: SystemException: Duplicate native method found : getInitErrorCode. Please check your source carefully."

is cause by the fact that 2 different calsses have the followring import of the external Libary (C#)" private static extern int getInitErrorCode(); "

Maybe you had not deleted the old C# sripts that comes with the Unitypackage.

Delete the Old  "Qualcomm Augmented Reality" inside of your unity project to get rid of it

 

Greetings Malzbier

OK, thank you!

December 19, 2012 - 1:05am #4

OK, thank you!

Reposted to Unity Forum

December 18, 2012 - 8:33am #3

I've reposted in the Unity Forum, thanks.

Hi, may I ask you to please

December 18, 2012 - 8:20am #2

Hi, may I ask you to please post this question in the Unity section of the forum ?

https://developer.vuforia.com/forum/ar-technical-discussion/vuforia-sdk/unity-3-extension-technical-discussion

Thanks.

 

Log in or register to post comments