:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the BakedLightmapData.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_BakedLightmapData: BakedLightmapData ================= **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` Properties ---------- +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`AABB` | :ref:`bounds` | ``AABB( 0, 0, 0, 0, 0, 0 )`` | +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`Transform` | :ref:`cell_space_transform` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` | +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`int` | :ref:`cell_subdiv` | ``1`` | +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`energy` | ``1.0`` | +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`PoolByteArray` | :ref:`octree` | ``PoolByteArray( )`` | +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+ Methods ------- +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_user` **(** :ref:`NodePath` path, :ref:`Texture` lightmap, :ref:`int` instance **)** | +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_users` **(** **)** | +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_user_count` **(** **)** |const| | +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_user_lightmap` **(** :ref:`int` user_idx **)** |const| | +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_user_path` **(** :ref:`int` user_idx **)** |const| | +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Property Descriptions --------------------- .. _class_BakedLightmapData_property_bounds: - :ref:`AABB` **bounds** +-----------+------------------------------+ | *Default* | ``AABB( 0, 0, 0, 0, 0, 0 )`` | +-----------+------------------------------+ | *Setter* | set_bounds(value) | +-----------+------------------------------+ | *Getter* | get_bounds() | +-----------+------------------------------+ ---- .. _class_BakedLightmapData_property_cell_space_transform: - :ref:`Transform` **cell_space_transform** +-----------+-----------------------------------------------------+ | *Default* | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` | +-----------+-----------------------------------------------------+ | *Setter* | set_cell_space_transform(value) | +-----------+-----------------------------------------------------+ | *Getter* | get_cell_space_transform() | +-----------+-----------------------------------------------------+ ---- .. _class_BakedLightmapData_property_cell_subdiv: - :ref:`int` **cell_subdiv** +-----------+------------------------+ | *Default* | ``1`` | +-----------+------------------------+ | *Setter* | set_cell_subdiv(value) | +-----------+------------------------+ | *Getter* | get_cell_subdiv() | +-----------+------------------------+ ---- .. _class_BakedLightmapData_property_energy: - :ref:`float` **energy** +-----------+-------------------+ | *Default* | ``1.0`` | +-----------+-------------------+ | *Setter* | set_energy(value) | +-----------+-------------------+ | *Getter* | get_energy() | +-----------+-------------------+ ---- .. _class_BakedLightmapData_property_octree: - :ref:`PoolByteArray` **octree** +-----------+-----------------------+ | *Default* | ``PoolByteArray( )`` | +-----------+-----------------------+ | *Setter* | set_octree(value) | +-----------+-----------------------+ | *Getter* | get_octree() | +-----------+-----------------------+ Method Descriptions ------------------- .. _class_BakedLightmapData_method_add_user: - void **add_user** **(** :ref:`NodePath` path, :ref:`Texture` lightmap, :ref:`int` instance **)** ---- .. _class_BakedLightmapData_method_clear_users: - void **clear_users** **(** **)** ---- .. _class_BakedLightmapData_method_get_user_count: - :ref:`int` **get_user_count** **(** **)** |const| ---- .. _class_BakedLightmapData_method_get_user_lightmap: - :ref:`Texture` **get_user_lightmap** **(** :ref:`int` user_idx **)** |const| ---- .. _class_BakedLightmapData_method_get_user_path: - :ref:`NodePath` **get_user_path** **(** :ref:`int` user_idx **)** |const| .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`