class_visualinstance.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualInstance.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualInstance:
  5. VisualInstance
  6. ==============
  7. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`BakedLightmap<class_bakedlightmap>`, :ref:`Light<class_light>`, :ref:`ReflectionProbe<class_reflectionprobe>`, :ref:`GIProbe<class_giprobe>`, :ref:`GeometryInstance<class_geometryinstance>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Member Functions
  13. ----------------
  14. +--------------------------+------------------------------------------------------------------------------------------+
  15. | :ref:`AABB<class_aabb>` | :ref:`get_aabb<class_VisualInstance_get_aabb>` **(** **)** const |
  16. +--------------------------+------------------------------------------------------------------------------------------+
  17. | :ref:`AABB<class_aabb>` | :ref:`get_transformed_aabb<class_VisualInstance_get_transformed_aabb>` **(** **)** const |
  18. +--------------------------+------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_base<class_VisualInstance_set_base>` **(** :ref:`RID<class_rid>` base **)** |
  20. +--------------------------+------------------------------------------------------------------------------------------+
  21. Member Variables
  22. ----------------
  23. .. _class_VisualInstance_layers:
  24. - :ref:`int<class_int>` **layers** - The render layer(s) this VisualInstance is drawn on.
  25. This object will only be visible for :ref:`Camera<class_camera>`\ s whose cull mask includes the render object this VisualInstance is set to.
  26. Member Function Description
  27. ---------------------------
  28. .. _class_VisualInstance_get_aabb:
  29. - :ref:`AABB<class_aabb>` **get_aabb** **(** **)** const
  30. Returns the :ref:`AABB<class_aabb>` (also known as the bounding box) for this VisualInstance.
  31. .. _class_VisualInstance_get_transformed_aabb:
  32. - :ref:`AABB<class_aabb>` **get_transformed_aabb** **(** **)** const
  33. Returns the transformed :ref:`AABB<class_aabb>` (also known as the bounding box) for this VisualInstance.
  34. Transformed in this case means the :ref:`AABB<class_aabb>` plus the position, rotation, and scale of the :ref:`Spatial<class_spatial>`\ s :ref:`Transform<class_transform>`
  35. .. _class_VisualInstance_set_base:
  36. - void **set_base** **(** :ref:`RID<class_rid>` base **)**
  37. Sets the base of the VisualInstance, which changes how the engine handles the VisualInstance under the hood.
  38. It is recommended to only use set_base if you know what you're doing.