Is there a place to report an error in the documentation?

In the scripting reference the code for how to combine meshes does not work. This code taken straight from the Unity reference

@script RequireComponent(MeshFilter)
@script RequireComponent(MeshRenderer)
function Start () {
    var meshFilters = GetComponentsInChildren(MeshFilter);
    var combine : CombineInstance[] = new CombineInstance[meshFilters.length];
    for ( i = 0; i < meshFilters.length; i++){
        combine[i].mesh = meshFilters[i].sharedMesh;
        combine[i].transform = meshFilters[i].transform.localToWorldMatrix;
        meshFilters[i].gameObject.active = false;
    }
    transform.GetComponent(MeshFilter).mesh = new Mesh();
    transform.GetComponent(MeshFilter).mesh.CombineMeshes(combine);
    transform.gameObject.active = true;
}

It combines them but then places the combine miles away from where they should be. Please see this thread…

http://forum.unity3d.com/threads/118912-Can-t-get-CombineMeshes-to-work.?p=796524&posted=1#post796524

Use the bug reporter app. Also, http://forum.unity3d.com/threads/33209-CombineMeshes-example-flawed.

–Eric

Thanks, this worked. I was expecting in the stats window my batched count to go from 0 to 1, but it didn’t, but that could be Unity. Also, I wrestled with this for 2 days, where were you 2 days ago!:rage: J/K

you can see my frustration here…
http://forum.unity3d.com/threads/118912-Can-t-get-CombineMeshes-to-work.?p=796524&posted=1#post796524

Also johnny A came up with a unique solution…
http://forum.unity3d.com/threads/117155-Combine-textures-and-meshes-(reduce-draw-calls)