跳到主要内容

BakedLightmapData

继承

Resource

简要描述

描述

成员

类型属性名默认值
AABBboundsAABB( 0, 0, 0, 0, 0, 0 )
Transformcell_space_transformTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
intcell_subdiv1
floatenergy1.0
PoolByteArrayoctreePoolByteArray( )

方法

返回值类型方法名称
voidadd_user(path: NodePath, lightmap: Texture, instance: int)
voidclear_users()
intget_user_count() const
Textureget_user_lightmap(user_idx: int) const
NodePathget_user_path(user_idx: int) const

常量

成员说明

  • AABB bounds
DefaultAABB( 0, 0, 0, 0, 0, 0 )
setterset_bounds(value)
getterget_bounds
  • Transform cell_space_transform
DefaultTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
setterset_cell_space_transform(value)
getterget_cell_space_transform
  • int cell_subdiv
Default1
setterset_cell_subdiv(value)
getterget_cell_subdiv
  • float energy
Default1.0
setterset_energy(value)
getterget_energy
  • PoolByteArray octree
DefaultPoolByteArray( )
setterset_octree(value)
getterget_octree

方法说明

  • add_user add_user(path: NodePath, lightmap: Texture, instance: int)

  • clear_users clear_users()

  • get_user_count get_user_count() const

  • get_user_lightmap get_user_lightmap(user_idx: int) const

  • get_user_path get_user_path(user_idx: int) const