Hi there
I’m trying to modify the value of a vector 3 variable that is stored in a dictionary, but when I do it, I get this strange error:
InvalidOperationException: out of sync
System.Collections.Generic.Dictionary`2+Enumerator[System.String,UnityEngine.Vector3].VerifyState …
Here is the line of code that does the updating, it runs in a standard loop that itterates through all the vector3’s in the userFormula class. Sorry, I know there are some info in this line that resides in other code, but I have tripple checked all the values and everything works as expected.
userFormulas.userVector3[pageList[pageIndex].curveName[i]] = new Vector3(GameObject.Find(pageList[pageIndex].curveName[i]).GetComponent<drawBezierCurve>().curVarValue, v3.Value.y, v3.Value.z);
Any help much appreciated!