class_multimeshinstance.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the MultiMeshInstance.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_MultiMeshInstance:
  6. MultiMeshInstance
  7. =================
  8. **Inherits:** :ref:`GeometryInstance<class_GeometryInstance>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`CullInstance<class_CullInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Node that instances a :ref:`MultiMesh<class_MultiMesh>`.
  10. Description
  11. -----------
  12. ``MultiMeshInstance`` is a specialized node to instance :ref:`GeometryInstance<class_GeometryInstance>`\ s based on a :ref:`MultiMesh<class_MultiMesh>` resource.
  13. This is useful to optimize the rendering of a high amount of instances of a given mesh (for example trees in a forest or grass strands).
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/performance/vertex_animation/animating_thousands_of_fish`
  17. - :doc:`../tutorials/3d/using_multi_mesh_instance`
  18. - :doc:`../tutorials/performance/using_multimesh`
  19. Properties
  20. ----------
  21. +-----------------------------------+--------------------------------------------------------------+
  22. | :ref:`MultiMesh<class_MultiMesh>` | :ref:`multimesh<class_MultiMeshInstance_property_multimesh>` |
  23. +-----------------------------------+--------------------------------------------------------------+
  24. Property Descriptions
  25. ---------------------
  26. .. _class_MultiMeshInstance_property_multimesh:
  27. - :ref:`MultiMesh<class_MultiMesh>` **multimesh**
  28. +----------+----------------------+
  29. | *Setter* | set_multimesh(value) |
  30. +----------+----------------------+
  31. | *Getter* | get_multimesh() |
  32. +----------+----------------------+
  33. The :ref:`MultiMesh<class_MultiMesh>` resource that will be used and shared among all instances of the ``MultiMeshInstance``.
  34. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  35. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  36. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`