This commit is contained in:
2025-05-16 23:31:59 +08:00
parent 9e4fef3f1e
commit d891e3f0ee
1198 changed files with 274242 additions and 1558 deletions

View File

@@ -0,0 +1,37 @@
using UnityEngine;
namespace VLB
{
public static class GlobalMeshHD
{
public static Mesh Get()
{
if (ms_Mesh == null)
{
Destroy();
ms_Mesh = MeshGenerator.GenerateConeZ_Radii_DoubleCaps(
lengthZ: 1f,
radiusStart: 1f,
radiusEnd: 1f,
numSides: Config.Instance.sharedMeshSides,
inverted: true);
ms_Mesh.hideFlags = Consts.Internal.ProceduralObjectsHideFlags;
}
return ms_Mesh;
}
public static void Destroy()
{
if (ms_Mesh != null)
{
GameObject.DestroyImmediate(ms_Mesh);
ms_Mesh = null;
}
}
static Mesh ms_Mesh = null;
}
}