Merge pull request #11981 from brotheramai/multimesh

Adding a sample mesh so demo code works 'out of the box'.
This commit is contained in:
brotheramai
2026-05-16 19:20:18 -04:00
committed by GitHub
parent a13cb099ab
commit 349be5d07b

View File

@@ -62,6 +62,8 @@ efficient for millions of objects, but for a few thousands, GDScript should be f
multimesh = MultiMesh.new()
# Set the format first.
multimesh.transform_format = MultiMesh.TRANSFORM_3D
# Set the mesh that will be duplicated.
multimesh.mesh = BoxMesh.new()
# Then resize (otherwise, changing the format is not allowed).
multimesh.instance_count = 10000
# Maybe not all of them should be visible at first.