24 lines
550 B
C#
24 lines
550 B
C#
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class MeshData {
|
||
|
|
|
||
|
|
public class Submesh {
|
||
|
|
public int BaseVertex = 0;
|
||
|
|
public List<int> Indices { get; } = new List<int>();
|
||
|
|
public MeshTopology Topology;
|
||
|
|
}
|
||
|
|
|
||
|
|
public List<Submesh> Submeshes { get; } = new List<Submesh>();
|
||
|
|
|
||
|
|
public List<Color> Colors { get; } = new List<Color>();
|
||
|
|
public List<Vector3> Vertices { get; } = new List<Vector3>();
|
||
|
|
|
||
|
|
|
||
|
|
public MeshData()
|
||
|
|
{
|
||
|
|
Submeshes.Add(new Submesh());
|
||
|
|
}
|
||
|
|
}
|