Skip to content

Commit 349be5d

Browse files
authored
Merge pull request #11981 from brotheramai/multimesh
Adding a sample mesh so demo code works 'out of the box'.
1 parent a13cb09 commit 349be5d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tutorials/performance/using_multimesh.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ efficient for millions of objects, but for a few thousands, GDScript should be f
6262
multimesh = MultiMesh.new()
6363
# Set the format first.
6464
multimesh.transform_format = MultiMesh.TRANSFORM_3D
65+
# Set the mesh that will be duplicated.
66+
multimesh.mesh = BoxMesh.new()
6567
# Then resize (otherwise, changing the format is not allowed).
6668
multimesh.instance_count = 10000
6769
# Maybe not all of them should be visible at first.

0 commit comments

Comments
 (0)