Log in or register to post comments

Assets Warning CS0168 while adding vuforia package into unity

May 8, 2021 - 9:55am #1

Hello,

my name is Kay and I'm new to vuforia and unity. So this is maybe a noob question.

I've installed Unity 2020.3.7f1 and the latest vuforia package 9.8.8. When I create a new project, unity starts up without any issue (I've tried 3D and AR). As soon as I import the unity package by dopple clicking or via the asset store I get the following warning:

Assets\Editor\Migration\AddVuforiaEnginePackage.cs(73,26): warning CS0168: The variable 'e' is declared but never used

I've tried to use an older Unity 2019 version but the problem still appear. I can't find any information on google about that, that's why I hope this forum can help a newbie like me to fix the problem.

Thanks in advance

Kay

Assets Warning CS0168 while adding vuforia package into unity

June 2, 2021 - 3:56pm #7

Hello, Kay

 

I had exactly the same error. I solved it following next steps:

1) Install git in your PC

2) Add git to the system path

3) Add a firewall rule for unity and Git

4) Restart your computer.

5) Add Vuforia using the Package manager, select add Package from git URL

 

I hope this can help you.



Cheers from Mexico

Assets Warning CS0168 while adding vuforia package into unity

May 18, 2021 - 5:57am #6

Hi,

Ok, strange behaviour.

Could you please create a new project and import directly the core sample app?

The sample will also install the Vuforia Engine SDK.

Thank you.

Vuforia Engine Support

Assets Warning CS0168 while adding vuforia package into unity

May 12, 2021 - 10:36am #5

Hi,

I only get the warning CS0168 warning. I am not able to select a Vuforia AR Camera. I've attached an image showing that there is no Vuforia component visible.

Kay

 

AttachmentSize
Image icon vuforia.png27.66 KB

Assets Warning CS0168 while adding vuforia package into unity

May 11, 2021 - 1:21am #4

Hi,

I was able to add the ARCamera to the scene.

Do you see any errors in the Console?

Could you please also confirm the exact error you get when adding the AR Camera?

Thank you.

Vuforia Engine Support

Assets Warning CS0168 while adding vuforia package into unity

May 10, 2021 - 8:24am #3

Hi,

 

thanks for your answer. But when I ignore the message, I am not able to add the Vuforia Engine AR Camera to my project. May I miss something?

 

Thanks in advance

Kay

Assets Warning CS0168 while adding vuforia package into unity

May 10, 2021 - 6:02am #2

Hi,

I was able to reproduce the warning. The warning appears only if you have already the SDK installed and you are importing a sample from the asset store.

I also checked the content of the sample and all is installed.

Please ignore the warning.

Thank you.

Vuforia Engine Support

Log in or register to post comments