The variable 'format' is a byte and the javascript reads like:
if( format & 2 ) // have normals
{
var normals = new Vector3[vertCount];
ReadVector3ArrayBytes (normals, buf);
mesh.normals = normals;
}
Source here: http://wiki.unity3d.com/index.php?title=MeshSerializer2
C# complains about this and says it cannot implicitly convert an int to a bool.
What does format & 2 accomplish and what should I be checking for in C# to evaluate if it's true? Also some further reading material on the matter would be helpful..