コード例 #1
0
        public static Mesh CreateMeshWithVertices(Vector3[] vertices, Vector2[] uv, int[] triangles)
        {
            Mesh mesh = UnityUtils.CreateMesh();

            mesh.vertices  = vertices;
            mesh.uv        = uv;
            mesh.triangles = triangles;
            mesh.RecalculateNormals();
            return(mesh);
        }
コード例 #2
0
 public unsafe static long $Invoke5(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(UnityUtils.CreateMesh()));
 }