2021-01-21 00:37:01 +00:00
# VoxelLibrary
Inherits: [Resource ](https://docs.godotengine.org/en/stable/classes/class_resource.html )
## Properties:
2021-01-24 14:32:38 +00:00
Type | Name | Default
------- | ---------------------------------- | --------
`int` | [atlas_size ](#i_atlas_size ) | 16
`bool` | [bake_tangents ](#i_bake_tangents ) | true
`int` | [voxel_count ](#i_voxel_count ) | 0
2021-01-21 00:37:01 +00:00
< p > < / p >
## Methods:
Return | Signature
--------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[void ](# ) | [bake ](#i_bake ) ( )
[Voxel ](Voxel.md ) | [create_voxel ](#i_create_voxel ) ( [int ](https://docs.godotengine.org/en/stable/classes/class_int.html ) id, [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name )
[Voxel ](Voxel.md ) | [get_voxel ](#i_get_voxel ) ( [int ](https://docs.godotengine.org/en/stable/classes/class_int.html ) id )
[Voxel ](Voxel.md ) | [get_voxel_by_name ](#i_get_voxel_by_name ) ( [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name )
[int ](https://docs.godotengine.org/en/stable/classes/class_int.html ) | [get_voxel_index_from_name ](#i_get_voxel_index_from_name ) ( [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name ) const
< p > < / p >
## Constants:
- **MAX_VOXEL_TYPES** = **65536**
## Property Descriptions
- [int ](https://docs.godotengine.org/en/stable/classes/class_int.html )< span id = "i_atlas_size" ></ span > **atlas_size** = 16
2021-01-24 14:32:38 +00:00
- [bool ](https://docs.godotengine.org/en/stable/classes/class_bool.html )< span id = "i_bake_tangents" ></ span > **bake_tangents** = true
2021-02-16 20:54:45 +00:00
2021-01-24 14:32:38 +00:00
Enable this option if you need normal mapping on your voxels. If you don't need it, disabling can reduce memory usage and give a small speed boost.
2021-01-21 00:37:01 +00:00
- [int ](https://docs.godotengine.org/en/stable/classes/class_int.html )< span id = "i_voxel_count" ></ span > **voxel_count** = 0
## Method Descriptions
- [void ](# )< span id = "i_bake" ></ span > **bake** ( )
- [Voxel ](Voxel.md )< span id = "i_create_voxel" ></ span > **create_voxel** ( [int ](https://docs.godotengine.org/en/stable/classes/class_int.html ) id, [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name )
- [Voxel ](Voxel.md )< span id = "i_get_voxel" ></ span > **get_voxel** ( [int ](https://docs.godotengine.org/en/stable/classes/class_int.html ) id )
- [Voxel ](Voxel.md )< span id = "i_get_voxel_by_name" ></ span > **get_voxel_by_name** ( [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name )
- [int ](https://docs.godotengine.org/en/stable/classes/class_int.html )< span id = "i_get_voxel_index_from_name" ></ span > **get_voxel_index_from_name** ( [String ](https://docs.godotengine.org/en/stable/classes/class_string.html ) name )
2021-11-06 02:04:16 +00:00
_Generated on Nov 06, 2021_