BakedLightmapData
继承
简要描述
描述
成员
类型 | 属性名 | 默认值 |
---|---|---|
AABB | bounds | AABB( 0, 0, 0, 0, 0, 0 ) |
Transform | cell_space_transform | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
int | cell_subdiv | 1 |
float | energy | 1.0 |
PoolByteArray | octree | PoolByteArray( ) |
方法
返回值类型 | 方法名称 |
---|---|
void | add_user(path: NodePath, lightmap: Texture, instance: int) |
void | clear_users() |
int | get_user_count() const |
Texture | get_user_lightmap(user_idx: int) const |
NodePath | get_user_path(user_idx: int) const |
常量
成员说明
- AABB bounds
Default | AABB( 0, 0, 0, 0, 0, 0 ) |
---|---|
setter | set_bounds(value) |
getter | get_bounds |
- 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 |
- int cell_subdiv
Default | 1 |
---|---|
setter | set_cell_subdiv(value) |
getter | get_cell_subdiv |
- float energy
Default | 1.0 |
---|---|
setter | set_energy(value) |
getter | get_energy |
- PoolByteArray octree
Default | PoolByteArray( ) |
---|---|
setter | set_octree(value) |
getter | get_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