This commit is contained in:
2025-05-13 05:25:23 +03:00
parent dd7defe16f
commit 0300eaeaa0
56 changed files with 1264 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CombineSubmeshesNode : MeshProcessor {
public override void Execute(ProceduralMeshData m)
{
List<int> indices = new List<int>();
foreach (var i in m.Indices)
{
indices.AddRange(i);
}
m.Indices = new List<int[]>();
m.Indices.Add(indices.ToArray());
}
}