.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualInstance.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualInstance: VisualInstance ============== **Inherits:** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`BakedLightmap`, :ref:`Light`, :ref:`ReflectionProbe`, :ref:`GIProbe`, :ref:`GeometryInstance` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------+------------------------------------------------------------------------------------------+ | :ref:`AABB` | :ref:`get_aabb` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------+ | :ref:`AABB` | :ref:`get_transformed_aabb` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------+ | void | :ref:`set_base` **(** :ref:`RID` base **)** | +--------------------------+------------------------------------------------------------------------------------------+ Member Variables ---------------- .. _class_VisualInstance_layers: - :ref:`int` **layers** - The render layer(s) this VisualInstance is drawn on. This object will only be visible for :ref:`Camera`\ s whose cull mask includes the render object this VisualInstance is set to. Member Function Description --------------------------- .. _class_VisualInstance_get_aabb: - :ref:`AABB` **get_aabb** **(** **)** const Returns the :ref:`AABB` (also known as the bounding box) for this VisualInstance. .. _class_VisualInstance_get_transformed_aabb: - :ref:`AABB` **get_transformed_aabb** **(** **)** const Returns the transformed :ref:`AABB` (also known as the bounding box) for this VisualInstance. Transformed in this case means the :ref:`AABB` plus the position, rotation, and scale of the :ref:`Spatial`\ s :ref:`Transform` .. _class_VisualInstance_set_base: - void **set_base** **(** :ref:`RID` base **)** Sets the base of the VisualInstance, which changes how the engine handles the VisualInstance under the hood. It is recommended to only use set_base if you know what you're doing.