private SetSharedTextures ( IEnumerable indexes ) : void | ||
indexes | IEnumerable | |
return | void |
public static void Apply( IEnumerable <FaceRebuildData> newFaces, ProBuilderMesh mesh, List <Vertex> vertices = null, List <Face> faces = null) { if (faces == null) { faces = new List <Face>(mesh.facesInternal); } if (vertices == null) { vertices = new List <Vertex>(mesh.GetVertices()); } var lookup = mesh.sharedVertexLookup; var lookupUV = mesh.sharedTextureLookup; Apply(newFaces, vertices, faces, lookup, lookupUV); mesh.SetVertices(vertices); mesh.faces = faces; mesh.SetSharedVertices(lookup); mesh.SetSharedTextures(lookupUV); }