So sorry I missed your question a few weeks back!
I’ve had a look and found that there is a problem with the variable names in the starter project. It looks like somewhere in our edit pipeline one of us forgot to update variable names. If you compare the starter project and the code you entered from the tutorial with the final project files you’ll see the differences.
But here is the fix, relevant up to the point where you got to before seeing that error in the console.
At the top the of the MeshStudy.cs script, make sure the first variable declarations are:
Then, in the InitMesh() method, change it to look like this:
public void InitMesh()
oMeshFilter = GetComponent<MeshFilter>();
originalMesh = oMeshFilter.sharedMesh; //1
clonedMesh = new Mesh(); //2
clonedMesh.name = "clone";
clonedMesh.vertices = originalMesh.vertices;
clonedMesh.triangles = originalMesh.triangles;
clonedMesh.normals = originalMesh.normals;
clonedMesh.uv = originalMesh.uv;
oMeshFilter.mesh = clonedMesh; //3
vertices = clonedMesh.vertices; //4
triangles = clonedMesh.triangles;
isCloned = true; //5
Debug.Log("Init & Cloned");
Save the file and return to the Unity editor. That should get you back on track. If the tutorial adds more code to this class further along, be sure to use the new variable names as per above.
Sorry again for the delay in response, and thanks @shogunkaramazov for the bump :]
I’ll speak to the team about getting the instructions here updated.