Log in or register to post comments

Migrate from v5.0.5 to v6.2

September 11, 2017 - 5:43am #1

Hi,

 

as the subject states, I'm trying to migrate an old Unity project from Vuforia v5.0.5 to 6.2.

According to this webpage : https://library.vuforia.com/articles/Solution/How-To-Migrate-a-Unity-Project.html

I should download and run the "ConfigurationUpgrade.cs". But when I create the script in the "Assets/Editor" folder I keep getting these errors in Unity:

Assets/Editor/QCAR/ConfigurationUpdate.cs.cs(74,45): error CS1525: Unexpected symbol `bs'

Assets/Editor/QCAR/ConfigurationUpdate.cs.cs(352,43): error CS1525: Unexpected symbol `1'

This happens both my PC and Macbook, in Unity 5.4.0f3 and 2017.1.0f3

Does anyone have a clue as to what could cause this ?

 

Thanks.

 

- Ronald

Migrate from v5.0.5 to v6.2

January 3, 2018 - 12:51pm #7

Migrate from v5.0.5 to v6.2

September 15, 2017 - 2:29am #6

Great, thanks a lot everyone.

I'm one small step ahead guess. After making these changes I get this error:

Assets/Editor/QCAR/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?)

I suspect the Vuforia team likes to create puzzles ;-)

Thanks,

Ronald

 

 

Migrate from v5.0.5 to v6.2

September 14, 2017 - 1:26pm #5

This helped me. Thank you. 

 

I also changed this:

 

private void WriteProperty(string property, bool value)

	{

	WriteProperty(property, value 1 : 0);

	 }

 

to this;

private void WriteProperty(string property, bool value)
        {
	 WriteProperty(property, value ? 1 : 0);
	}

 

Which fixed the second error. Now I am getting this error:

 

Assets/Editor/Vuforia-User-Created/ConfigurationUpgrade.cs.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?

Migrating from Vuforia 5.0.10 to 6.2.10 in Unity 5.6.2f1 

 

Any suggestions? I'm still a relative newbie in this area...

 

Thanks in advance for your help.

Migrate from v5.0.5 to v6.2

September 14, 2017 - 9:18am #4


Hello Ronald,

I believe allmadhere meant to say question mark instead of quotation mark.

The code line should be this:

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

Thanks,

-Vuforia Support

Migrate from v5.0.5 to v6.2

September 14, 2017 - 4:18am #3

Hey, thanks.

I'm a newbie with C++ and such. I must be doing something really dumb, but I tried adding quotation marks around the "bs" statements ( just like this ).

But I keep getting an error.

One of the lines looks like this : var name = idx < 0 bs.path : bs.path.Substring(idx+1);

So I changed it to : var name = idx < 0 "bs".path :" bs".path.Substring(idx+1);

I suppose that's completely wrong ?

Thanks,

 

- Ronald

 

 

 

Migrate from v5.0.5 to v6.2

September 12, 2017 - 12:19pm #2

I got that, too. before "bs" and "1," drop in a quotation mark.  They're meant to be if/then statements, somehow the code they posted didn't include them.

Log in or register to post comments