Log in or register to post comments

Warnings in AddVuforiaEnginePackage.cs

August 19, 2021 - 10:43am #1

Vuforia SDK Version: 9.x through 10.x -

Description with steps to reproduce: Since at least 9.x; the AddVuforiaEnginePackage.cs script generates an "unused variable e" warning around line 107:

static Version TryConvertStringToVersion(string versionString)
{
Version res;
try
{
res = new Version(versionString);
}
catch (Exception e) // {
return new Version();
}

return new Version(res.Major, res.Minor, res.Build);
}

Please get rid of the 'e'.

This has been around long enough that surely one of your devs has seen the warning by now, but for some reason hasn't gone the extra mile and deleted the worse case 2 characters to get rid of the warning. So, do that.
-

Development OS (Mac OS X, Windows, Linux): Windows 10 -

Mobile OS and Version: Multiple -

Mobile Device Manufacturer and Model name: Multiple -

Do the Vuforia Sample Applications show the same behavior?: Yes

Warnings in AddVuforiaEnginePackage.cs

August 20, 2021 - 5:40am #2

Hey there,

 

Could you let me know when you encounter the warning message? Do you get it when you add Vuforia to your Unity project?

Thanks!

 

Kind regards,

Patrick Scheper

Technical Community Manager

Log in or register to post comments