I keep getting "BCE0019: ‘vertices’ is not a member of ‘Object’. " error. Not sure whats not quite right.
for(i=0; i < objChildren.Count; i++){
objMeshList.Add(objChildren*.gameObject.GetComponent(MeshFilter).mesh);*
-
}*
-
for(i=0; i < objMeshList.Count; i++){*
_ thisObj = objMeshList*;_
_ for(theseVectors in thisObj){_
_ vertexAll.Add(theseVectors.vertices);_
_ normalsAll.Add(theseVectors.normals);_
_ }_
_ }*_
How did you declare theseVectors? My guess is that you did: var theseVectors; and you need to do: var theseVectors : Mesh; (assuming theseVectors is a mesh).
– robertbuI actually didn't assign it to anything, its just a holder variable. I tried specifying that it is a mesh, like you said, but no luck.#pragma strict is on, but I have other holder variables in other for() loops and it doesnt care about those not being pre defined. I don't understand why Unity thinks my objMeshList is a list of Objects?
– bpearsAre you absolutely sure you have '#pragma strict' as the first line in your file? With #pragma strict, this code should be outputting a slew of errors.
– robertbuyes, this is just the important part of the code, to make reading easier.
– bpears