Log in or register to post comments

Upgrade to Vuforia 6.2

March 6, 2017 - 3:28am #1

Hello,

I follow this migration guide ( update tutorial ) to update Vuforia from version 6.0.114 to 6.2.10.

When I add the upgrade script ( 4. ) to the project folder I get the following error:

Assets/NewBehaviourScript.cs(327,79): error CS1061: Type `UnityEditor.SerializedProperty' does not contain a definition for `GetArrayItems' and no extension method `GetArrayItems' of type `UnityEditor.SerializedProperty' could be found (are you missing a using directive or an assembly reference?)

 

I tested Unity 5.4.3, 5.4.4 and 5.5.2 and I always get this error.

Please help!

 

Best

Greetings

Upgrade to Vuforia 6.2

January 3, 2018 - 1:06pm #13

Thank you @Wolfsmutter - that did the trick!

Upgrade to Vuforia 6.2

October 17, 2017 - 11:28am #12

For people who still have an issue with this, the GetArrayItems-Method is missing in the linked Vuforia Configuration Upgrade Script: https://library.vuforia.com/articles/Solution/Unity-Configuration-Upgrade-Script-for-Vuforia-6-2-plus and I had to replace some code after line 325, change this:

    case PropertyType.STRING_ARRAY:

       string[] data;

       serializedObject.FindProperty(property.BehaviourName).GetArrayItems(out data);

       WriteProperty(property.ConfigurationName, data);

       break;

Into this:

    case PropertyType.STRING_ARRAY:

       string[] data = new string[serializedObject.FindProperty(property.BehaviourName).arraySize];

       for (int i=0; i < serializedObject.FindProperty(property.BehaviourName).arraySize; i++){

          data [i] = serializedObject.FindProperty (property.BehaviourName).GetArrayElementAtIndex (i).ToString();

       }

       WriteProperty(property.ConfigurationName, data);

       break;

 

 

And it should go through fine after.

Upgrade to Vuforia 6.2

September 28, 2017 - 8:07am #11

medabit wrote:

Hello,

We have been unable to reproduce this error during our testing. Can you provide a repro project to help us investigate further? Please PM me the link.

Thanks.

Hey medabit, having the same problem as most everyone else with Updating.

 

The Migration guide here: https://library.vuforia.com/articles/Solution/How-To-Migrate-a-Unity-Project.html#migrating-6-2 says to Download the "ConfigurationUpgrade.cs", but there is no Download link in the guide:

Quote:

Download the upgrade script ConfigurationUpgrade.cs and add it to any Assets/Editor folder.

It just contains a link to the page with the Script that can be Copy/Pasted into a Unity Script afterwards: https://library.vuforia.com/articles/Solution/Unity-Configuration-Upgrade-Script-for-Vuforia-6-2-plus

 

As other people have said in another topic: https://developer.vuforia.com/forum/unity/migrate-v505-v62 regarding this, immediately after Copy/Pasting it from that page as Assets/Editor/ConfigurationUpgrade.cs one gets these Errors in Unity:

Quote:

Assets/Editor/ConfigurationUpgrade.cs(74,25): error CS1525: Unexpected symbol `bs'

Assets/Editor/ConfigurationUpgrade.cs(352,33): error CS1525: Unexpected symbol `1'

 

This can be fixed by adding a "?" to lines 74 and 352 so they look like this:

Quote:

var name = idx < 0 ? bs.path : bs.path.Substring(idx+1);

WriteProperty(property, value ? 1 : 0);

 

So far so good, but afterwards one gets the Error:

Quote:

Assets/Editor/ConfigurationUpgrade.cs(327,60): error CS1061: Type `UnityEditor.SerializedProperty' does not contain a definition for `GetArrayItems' and no extension method `GetArrayItems' of type `UnityEditor.SerializedProperty' could be found. Are you missing an assembly reference?

 

Could it be that you worked on the Script on your side and haven't offered as a download or updated the Live version on that page and that's where the problems stem from?

Upgrade to Vuforia 6.2

September 22, 2017 - 7:12pm #10

I'm having the same problem as well. If anyone has a solution, please let us know.  Thanks!

Upgrade to Vuforia 6.2

September 20, 2017 - 12:35am #9

Hi,

 

I'm having the same problem. Did anyone find a solution ?

 

Thanks, Ronald

Upgrade to Vuforia 6.2

July 19, 2017 - 11:58pm #8

Hey,

I am facing the exact same problems. Are there any news about that?

Unity 5.3.5f1, Vuforia 6.2

I pasted the code into a ConfigurationUpgrade.cs file inside my Assets/Editor folder and got 2 errors:

 

Quote:

Assets/Editor/ConfigurationUpgrade.cs(327,95): error CS1061: Type `UnityEditor.SerializedProperty' does not contain a definition for `GetArrayItems' and no extension method `GetArrayItems' of type `UnityEditor.SerializedProperty' could be found (are you missing a using directive or an assembly reference?)

Quote:

Assets/Editor/ConfigurationUpgrade.cs(328,83): error CS0165: Use of unassigned local variable `data'

 

Thanks for any help!

Rob

 

Upgrade to Vuforia 6.2

May 19, 2017 - 1:32am #7

Still no reply.

Upgrade to Vuforia 6.2

April 4, 2017 - 6:25am #6

Hi,

I'm still having the problem meanwhile the file is in Assets/Editor/

I'm using Unity 5.3.6f1

Upgrade to Vuforia 6.2

March 20, 2017 - 9:39am #5

When I paste the config file to any Assets/Editor folder the error is gone. Thanks!

 

Should I also delete the Assets/Vuforia Video Playback folder ?

And Assets/Editor/Vuforia ??

Upgrade to Vuforia 6.2

March 15, 2017 - 5:12am #4

Hi,

 

Any update on this?

 

the configuration upgrade script doesn't work in Unity 5.5

Upgrade to Vuforia 6.2

March 7, 2017 - 3:06pm #3

Hello,

I believe I found a small omission in the original article: https://library.vuforia.com/articles/Solution/Migrating-Unity-Projects-to-Vuforia-6-2

"4. Download the upgrade script ConfigurationUpgrade.cs and add it to the Assets folder"

should read

"4. Download the upgrade script ConfigurationUpgrade.cs and add it to any Assets/Editor folder"

This make it consistent with the supporting article: https://library.vuforia.com/articles/Solution/Unity-Configuration-Upgrade-Script-for-Vuforia-6-2-plus, whose instructions were more correct.

I will do additional investigation and provide more details, if necessary.

Thanks.


Upgrade to Vuforia 6.2

March 7, 2017 - 6:56am #2

Hello,

We have been unable to reproduce this error during our testing. Can you provide a repro project to help us investigate further? Please PM me the link.

Thanks.

Log in or register to post comments