MeshObject.
{
float uvs[6] = {0.0,0.0, 1.0,0.0, 0.0,1.0};
int indices[3] = {0,1,2};
int numVertices[] = {3};
int numIndices[] = {3};
string materials[] = {"{726C1969B0B78245}defMat.emat"};
Resource res = MeshObject.Create(1, numVertices, numIndices, materials, 0);
MeshObject meshObject = res.GetResource().ToMeshObject();
meshObject.UpdateVerts(0, verts, uvs);
meshObject.UpdateIndices(0, indices);
obj.SetObject(meshObject,"");
}
proto native vector Vector(float x, float y, float z)
Definition at line 33 of file MeshObject.c.