From d91b59eb4a8c5a7db15cd30adcd6b33a8a3de206 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 22 Jul 2026 05:05:56 +0100 Subject: [PATCH] Disambiguate Unity mesh adapter type --- .../Runtime/Unity/PlanetaryPatchMeshAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity/org.gamecult.geometry/Runtime/Unity/PlanetaryPatchMeshAdapter.cs b/unity/org.gamecult.geometry/Runtime/Unity/PlanetaryPatchMeshAdapter.cs index 111b9931..e880842d 100644 --- a/unity/org.gamecult.geometry/Runtime/Unity/PlanetaryPatchMeshAdapter.cs +++ b/unity/org.gamecult.geometry/Runtime/Unity/PlanetaryPatchMeshAdapter.cs @@ -8,7 +8,7 @@ namespace GameCult.Geometry.Unity public static class PlanetaryPatchMeshAdapter { - public static Mesh CreateFaceMesh(PlanetaryCubeFace face, int cellsPerAxis, float radius = 1) + public static UnityEngine.Mesh CreateFaceMesh(PlanetaryCubeFace face, int cellsPerAxis, float radius = 1) { if (!float.IsFinite(radius) || radius <= 0) throw new ArgumentOutOfRangeException(nameof(radius)); var source = PlanetaryPatch.CreateFace(face, cellsPerAxis); @@ -22,7 +22,7 @@ public static class PlanetaryPatchMeshAdapter vertices[i] = normal * radius; normals[i] = normal; uv[i] = new Vector2(source.Vertices[i].LocalCoordinate.x, source.Vertices[i].LocalCoordinate.y); } - var mesh = new Mesh { name = $"GameCult.Geometry Planetary {face} {cellsPerAxis}x{cellsPerAxis}", indexFormat = vertices.Length > ushort.MaxValue ? IndexFormat.UInt32 : IndexFormat.UInt16, vertices = vertices, normals = normals, uv = uv, triangles = source.Indices }; + var mesh = new UnityEngine.Mesh { name = $"GameCult.Geometry Planetary {face} {cellsPerAxis}x{cellsPerAxis}", indexFormat = vertices.Length > ushort.MaxValue ? IndexFormat.UInt32 : IndexFormat.UInt16, vertices = vertices, normals = normals, uv = uv, triangles = source.Indices }; mesh.RecalculateBounds(); return mesh; } }