class_multimeshinstance.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/MultiMeshInstance.xml.
  6. .. _class_MultiMeshInstance:
  7. MultiMeshInstance
  8. =================
  9. **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>`
  10. Node that instances a :ref:`MultiMesh<class_MultiMesh>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **MultiMeshInstance** is a specialized node to instance :ref:`GeometryInstance<class_GeometryInstance>`\ s based on a :ref:`MultiMesh<class_MultiMesh>` resource.
  15. 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).
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`../tutorials/performance/vertex_animation/animating_thousands_of_fish`
  20. - :doc:`../tutorials/3d/using_multi_mesh_instance`
  21. - :doc:`../tutorials/performance/using_multimesh`
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +-----------------------------------+--------------------------------------------------------------+
  28. | :ref:`MultiMesh<class_MultiMesh>` | :ref:`multimesh<class_MultiMeshInstance_property_multimesh>` |
  29. +-----------------------------------+--------------------------------------------------------------+
  30. .. rst-class:: classref-section-separator
  31. ----
  32. .. rst-class:: classref-descriptions-group
  33. Property Descriptions
  34. ---------------------
  35. .. _class_MultiMeshInstance_property_multimesh:
  36. .. rst-class:: classref-property
  37. :ref:`MultiMesh<class_MultiMesh>` **multimesh**
  38. .. rst-class:: classref-property-setget
  39. - void **set_multimesh** **(** :ref:`MultiMesh<class_MultiMesh>` value **)**
  40. - :ref:`MultiMesh<class_MultiMesh>` **get_multimesh** **(** **)**
  41. The :ref:`MultiMesh<class_MultiMesh>` resource that will be used and shared among all instances of the **MultiMeshInstance**.
  42. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  43. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  44. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  45. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`