Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
##### Additions :tada:

- Added option to ignore the `KHR_material_unlit` extension to force default lighting on tilesets.
- Added support for VCTR Polygon and VCTR Point

## v1.17.0 - 2025-08-01

Expand Down
4 changes: 4 additions & 0 deletions Runtime/ConfigureReinterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@ public void ExposeToCPP()
mesh.SetUVs(0, new NativeArray<Vector2>());
mesh.SetIndices(new NativeArray<int>(), MeshTopology.Triangles, 0, true, 0);
mesh.RecalculateBounds();
mesh.indexFormat = IndexFormat.UInt32;
int vertexCount = mesh.vertexCount;
int instanceID = mesh.GetInstanceID();

Vector3[] vertices = mesh.vertices;
Vector3 vertex = vertices[0];

int[] triangles = mesh.triangles;
int triangle = triangles[0];

Bounds bounds = new Bounds(new Vector3(0, 0, 0), new Vector3(1, 2, 1));

MeshCollider meshCollider = go.AddComponent<MeshCollider>();
Expand Down
Loading