So I have few models that I found have unreferenced vertices. They are in OBJ format.
I can remove these vertices in MeshLab.
But I wondered if I need to do that step - I was hoping perhaps that Unity ignored them anyway ?
Thanks you.
So I have few models that I found have unreferenced vertices. They are in OBJ format.
I can remove these vertices in MeshLab.
But I wondered if I need to do that step - I was hoping perhaps that Unity ignored them anyway ?
Thanks you.
I don’t know the answer directly, but I do know a way you could check:
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(MeshFilter))]
public class LogVertCount : MonoBehaviour {
void Start() {
Mesh mesh = GetComponent<MeshFilter>().mesh;
Debug.Log(mesh.vertices.Length);
}
}
Copy the above script into a C# file, attach both the script and your mesh to an object in an otherwise empty scene, and press play. Your console window should show the number of verts Unity thinks are attached to the object.
Repeat the test twice: once with an asset you clean up manually, and once with an asset you don’t. Do they show different vert counts?