Hello, when I update my Unity 3.4 code to Unity 5.3, it shows me the following error:
Error CS1061 'Mesh' does not contain a definition for 'GetTriangleStrip' and no extension method 'GetTriangleStrip' accepting a first argument of type 'Mesh' could be found (are you missing a using directive or an assembly reference?)
The code in question is the following:
int[] inputtriangles = combine.mesh.GetTriangleStrip(combine.subMeshIndex);
for (int i=0;i<inputtriangles.Length;i++)
{
triangles[i+triangleOffset] = inputtriangles[i] + vertexOffset;
}
triangleOffset += inputtriangles.Length;
How can I solve it?