Files
UnityProcedural/Assets/Scripts/ProceduralMesh/MeshData.cs
T

24 lines
550 B
C#
Raw Normal View History

2025-05-13 04:34:28 +03:00
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());
}
}