mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
Merge pull request #11981 from brotheramai/multimesh
Adding a sample mesh so demo code works 'out of the box'.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user